article

Action executed in 0.000

Guitar Test, Truncated XML

After a short workout, i went with Marc directly from work to Guitar Center. We went to the back room were we tested a varied selection of Martins and Taylors.

The Taylors have a tinny and bright sound whereas the Martins have a mellow and full bodied sound. After hearing it, i'm now thinking about the D-28; after all this guitar will last me a lifetime.

I didn't work on the comment feature on account of this dilemma. I want to provide truncated versions of articles on the top page, but don't know how to truncate XML without invalidating it. I do have one idea. Basically read and parse the content maintaining a stack of open tags. Count the number of characters printed. When you hit the limit, close all the open tags in reverse order.

PHP and Java have nice libraries to parse XML. I just prefer Xerces.

Comments

none yet

Post a Comment

* indicates a required field
anonymous (If you want to identify yourself, please sign in first.)
required This field is required.

Max size is 2 MB, aspect ratio 3:4 width:height
required This field is required.
Please include a short description.
required This field is required.

480 characters remaining.
is public

(Use this field if you have to. 3000 characters remaining.)
1 dime, 1 nickel, 2 quarters + 100

Trackback URL

http://derocher.org/~brian//trackback.php?ParentId=122

form