Jump to content

Handling multiple XML text segments


lclee
 Share

Recommended Posts

This is XML.

<r>My <b>car</b> is <b>blue</b></r>

What is the correct text content of r?

Using _ to represent a space, r's text value could be: My__is_  Capture every character between <> My__is   Strip leading and trailing whitespace Myis     Strip each segments leading and trailing whitespace My       Use only the first text value is       Use only the last value

I'm interested in how the various parsers handle this,but references to the XML standard would be most appreciated.Thank youLarry

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...