Bob Schor Posted April 27, 2009 Report Share Posted April 27, 2009 I have a cluster with an element called "Trial #". According to the "rules" of XML, all 7 characters are valid. According to the "rules" of EasyXML, the space character should be converted to an underscore. Thus I expect the EasyXML code to have a tag that looks like <Trial_#>, but instead, I get <Trial_>, missing the Hash character. I know that this character can have another meaning as a "numeric indicator", i.e. something like "Ӓ" (I think this form is called a numeric character reference, and I think this allows you, in XML, to "encode" any old character by writing its decimal value). Is omitting the "#" in EasyXML a Bug or a Feature? [Haven't experimented with other characters, but have seen references here to the colon character -- is it Treasure Hunt time?] Link to comment Share on other sites More sharing options...
Jim Kring Posted April 27, 2009 Report Share Posted April 27, 2009 I have a cluster with an element called "Trial #". According to the "rules" of XML, all 7 characters are valid. According to the "rules" of EasyXML, the space character should be converted to an underscore. Thus I expect the EasyXML code to have a tag that looks like , but instead, I get , missing the Hash character. I know that this character can have another meaning as a "numeric indicator", i.e. something like "Ӓ" (I think this form is called a numeric character reference, and I think this allows you, in XML, to "encode" any old character by writing its decimal value). Is omitting the "#" in EasyXML a Bug or a Feature? [Haven't experimented with other characters, but have seen references here to the colon character -- is it Treasure Hunt time?] Hi Bob, The # character cannot be used in XML names, according to the specification, here: http://www.w3.org/TR/REC-xml/#sec-common-syn As such, EasyXML will delete it from names. Of course, interpreting the XML specification can be a bit of a "treasure hunt", unless you have a really good understanding of regular expressions Thanks, -Jim Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.