lclee 0 Posted October 4, 2012 Report Share Posted October 4, 2012 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 Quote Link to post Share on other sites
Ingolme 1,020 Posted October 4, 2012 Report Share Posted October 4, 2012 If I'm remembering correctly, the text content should be all the text from the node and all its descendents, whitespace included. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.