SBonfiglio
IS-IT--Management
Hello Folks.
I'm trying to read an XML formatted file via Altova but being a beginner in XML (and Altova) there is a problem that I can't understand and I would ask you to illuminate me.
It is a complex problem also because it seems related to some non "well formatted" document, but the document is produced by the EBAY Api!
Well, I don't think that Ebay - which is a solid company that is founding half of its own business on the XML document exchange - can deliver any incorrectly formatted document, all this seems at least crazy to me.
In the small file that I include in this post there is a node called "<DetailsURL>" which has a long url in it. In this url - as obvious - there are many "=" signs that Altova says are "grammatical errors" !!
Also some other tools refuse to process this file.
ColdFusion 8 simply outputs an error 500.
I'm worried about this, because this is the output of the EBAY API and I'm studying to make an application to query EBAY.
Is there someone who can help me come out from this mess and explain to me what am I missing ?
I deeply thank you in advance.
This is the file that I'm trying to analyze:
<?xml version="1.0" encoding="utf-8"?>
<FindHalfProductsResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2007-08-23T00:38:28.171Z</Timestamp>
<Ack>Success</Ack>
<Build>e527_core_Bundled_5199934_R1</Build>
<Version>527</Version>
<PageNumber>1</PageNumber>
<ApproximatePages>109</ApproximatePages>
<MoreResults>true</MoreResults>
<TotalProducts>217</TotalProducts>
<Products>
<Product>
<Title>Harry Potter and the Order of the Phoenix by J. K. Rowling (2004)</Title>
<DetailsURL> <StockPhotoURL> <DisplayStockPhotos>true</DisplayStockPhotos>
<ProductID type="Reference">31266511</ProductID>
<ProductID type="ISBN">1234567890</ProductID>
<DomainName>Nonfiction Books</DomainName>
<ItemSpecifics>
<NameValueList>
<Name>Format</Name>
<Value>Softcover</Value>
</NameValueList>
<NameValueList>
<Name>Author</Name>
<Value>J. K. Rowling</Value>
</NameValueList>
</ItemSpecifics>
<ReviewCount>36</ReviewCount>
</Product>
<Product>
<Title>Harry Potter and the Sorcerers Stone by Jill Daniels (2001)</Title>
<DetailsURL> <StockPhotoURL> <DisplayStockPhotos>true</DisplayStockPhotos>
<ProductID type="Reference">8793876</ProductID>
<ProductID type="ISBN">9780439294829</ProductID>
<ProductID type="ISBN">0439294827</ProductID>
<DomainName>Nonfiction Books</DomainName>
<ItemSpecifics>
<NameValueList>
<Name>Format</Name>
<Value>Hardcover</Value>
</NameValueList>
<NameValueList>
<Name>Author</Name>
<Value>Jill Daniels</Value>
</NameValueList>
</ItemSpecifics>
<ReviewCount>0</ReviewCount>
</Product>
</Products>
</FindHalfProductsResponse>
Thanks to everyone at least for your attention.
Sergio
I'm trying to read an XML formatted file via Altova but being a beginner in XML (and Altova) there is a problem that I can't understand and I would ask you to illuminate me.
It is a complex problem also because it seems related to some non "well formatted" document, but the document is produced by the EBAY Api!
Well, I don't think that Ebay - which is a solid company that is founding half of its own business on the XML document exchange - can deliver any incorrectly formatted document, all this seems at least crazy to me.
In the small file that I include in this post there is a node called "<DetailsURL>" which has a long url in it. In this url - as obvious - there are many "=" signs that Altova says are "grammatical errors" !!
Also some other tools refuse to process this file.
ColdFusion 8 simply outputs an error 500.
I'm worried about this, because this is the output of the EBAY API and I'm studying to make an application to query EBAY.
Is there someone who can help me come out from this mess and explain to me what am I missing ?
I deeply thank you in advance.
This is the file that I'm trying to analyze:
<?xml version="1.0" encoding="utf-8"?>
<FindHalfProductsResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2007-08-23T00:38:28.171Z</Timestamp>
<Ack>Success</Ack>
<Build>e527_core_Bundled_5199934_R1</Build>
<Version>527</Version>
<PageNumber>1</PageNumber>
<ApproximatePages>109</ApproximatePages>
<MoreResults>true</MoreResults>
<TotalProducts>217</TotalProducts>
<Products>
<Product>
<Title>Harry Potter and the Order of the Phoenix by J. K. Rowling (2004)</Title>
<DetailsURL> <StockPhotoURL> <DisplayStockPhotos>true</DisplayStockPhotos>
<ProductID type="Reference">31266511</ProductID>
<ProductID type="ISBN">1234567890</ProductID>
<DomainName>Nonfiction Books</DomainName>
<ItemSpecifics>
<NameValueList>
<Name>Format</Name>
<Value>Softcover</Value>
</NameValueList>
<NameValueList>
<Name>Author</Name>
<Value>J. K. Rowling</Value>
</NameValueList>
</ItemSpecifics>
<ReviewCount>36</ReviewCount>
</Product>
<Product>
<Title>Harry Potter and the Sorcerers Stone by Jill Daniels (2001)</Title>
<DetailsURL> <StockPhotoURL> <DisplayStockPhotos>true</DisplayStockPhotos>
<ProductID type="Reference">8793876</ProductID>
<ProductID type="ISBN">9780439294829</ProductID>
<ProductID type="ISBN">0439294827</ProductID>
<DomainName>Nonfiction Books</DomainName>
<ItemSpecifics>
<NameValueList>
<Name>Format</Name>
<Value>Hardcover</Value>
</NameValueList>
<NameValueList>
<Name>Author</Name>
<Value>Jill Daniels</Value>
</NameValueList>
</ItemSpecifics>
<ReviewCount>0</ReviewCount>
</Product>
</Products>
</FindHalfProductsResponse>
Thanks to everyone at least for your attention.
Sergio