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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Xml File - ??? Format

Status
Not open for further replies.

kennedymr2

Programmer
May 23, 2001
594
AU
I have an xml file formatted as per the following..

I am interested as to how i am to parse it (i am using vb6)

eg the - in front of the lines gives problems etc

Is this a standard xml format ?????

Appreciate any advice.

Regards Kennedymr2




<?xml version="1.0" ?>
- <RS api="site" request="get_1l" ts="121119" ts_timezone="Australia/ACT" rc="0">
- <categories>
- <category id="10" type="ra">
<name>H R</name>
- <subcategories>


etc...................................
 
There isn't "-" in the xml document. It is an artifact when you view it with a browser, I suppose, because the browser use its built-in transformation to make it more easy visulaization for the benefit of its users. Use view page source and you'll see the source script.
 

When i load the page even in IE8 it displays the "-".

Maybe i will just have to capture the page and then remove the - before i DOM the file in VB6.

Every project i seem to get involved in lately is Xml related.!!! It seems to me that XML is patchy and inconsistent in how people use it...

Once again Thanks tsuji
 
>It seems to me that XML is patchy and inconsistent in how people use it...
I can tell you that that is not a fair assessment. But I leave it to you to make an order out of it.
 
I have removed the - and also had to alter some invalid characters such as xyz = Replace(xyz, "ü", "u") non-english characters ...and its working 100% ok.

What i was meaning was... people generating xml are careless in their generation of files.

Thanks for your help

Regards Kennedymr2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top