Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make xmlparse case insensitive

Status
Not open for further replies.

minli98

IS-IT--Management
Aug 30, 2005
178
US
I am trying to read in an xml document:

Code:
<Customer id="1">
   <Name>Aaron Long</name>
   <ReturnAddress>123 Main St</returnaddress>
</customer>

However, when I use xmlparse(xmlText,'no'), it gives me an error message:
The element type "Name" must be terminated by the matching end-tag "".

It seems that xmlparse does not recognize </name> as the end-tag of <Name> eventhough I have set the case-sensitive attribute to 'no'. When I use <Name></Name> or <name></name>, I get no error.

Am I doing something wrong here? I thought that by setting the case-sensitive attribute to 'no', the xmlparser should not be case-sensitive.

Thank you.

Min
 
Yes, what's wrong is poorly-formatted XML. Tag name case must agree. I may be wrong but the case-sensitive switch may apply to values, not elements.

Phil Hegedusich
Senior Programmer/Analyst
IIMAK
-----------
I'll have the roast duck with the mango salsa.
 
Hi Phil,

Thanks for the answer. I decided to lowercase everything since I didn't really need to maintain the case-sensitivity.

Regards,
Min
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top