RSS Forums RSS
Please support our VB.NET advertiser: Programming Forums

Xml Case Sensitive

Join Date: Mar 2007
Posts: 32
Reputation: karan_21584 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
karan_21584 karan_21584 is offline Offline
Light Poster

Help Re: Xml Case Sensitive

  #3  
Apr 4th, 2007
Originally Posted by iamthwee View Post
Assuming it is only the contents of the xml tags you want to change and not everything else, you will probably need regular expressions.

Have you a better example?


Actually i m trying here with the datamigration concept.once i convert my XML values to an foxpro 9.0 database, its not accepting and CASE SENSITIVE problem occur.so for the remedy, i need to convert the values which is fetching from xml file and xml schema to "ALL LOWERCASE"... for example...

xml file :

<?xml version="1.0" standalone="yes" ?>
- <NewDataSet>
- <Table1>
<No>1</no>

<Name>www</name>

</Table1>


- <Table1>
<No>2</no>

<Name>gfdf</name>

</Table1>


</NewDataSet>

from the above i want to fetch the "no" and "name" and all should be in lowercase.

xml schema :

<?xml version="1.0" standalone="yes" ?> - <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
- <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
- <xs:complexType>
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element name="Table1">
- <xs:complexType>
- <xs:sequence>
<xs:element name="No" type="xs:int" minOccurs="0" />

<xs:element name="Name" type="xs:string" minOccurs="0" />

</xs:sequence>


</xs:complexType>


</xs:element>


</xs:choice>


</xs:complexType>


</xs:element>


</xs:schema>

in the above schema, i want to fetch the element name such as "No" and "Name"... but all in lower case. HELP ME PLZ!
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:36 pm.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC