validating XML node data

T

tom

Hi folks

Is there a piece of software or a wbsite that validates the content inside
an XML node?

I download an XML feed and when I export it from MSAccess to an XML file and
transform it with an XSL file, no results are returned. I know that the
format of the XML file is correct. It must be some sort of non standard
character inside one of the nodes that is causing this.

The XML file I am using is huge and constantly updating and would take me
ages to go through it and locate manually. There must be some way to check
for this automatically, please say there is.

Thanks

Tom
 
M

Martin Honnen

tom said:
Is there a piece of software or a wbsite that validates the content inside
an XML node?

Any XML parser will flag not well-formed errors and a validating parser
can validate against a DTD or a schema.
 
T

tom

The problem seems to be when there is a £ sign in the data inside a node. I
went through the whole file until I found this, removed it and the problem
was solved, I had the same problem a while a go as well, that time there was
an accent on one of the letters. On both ocassions it took me ages to
locate. Surely there some way to check it appart from going through it one
by one.
 
M

Martin Honnen

tom said:
The problem seems to be when there is a £ sign in the data inside a node.
Surely there some way to check it appart from going through it one
by one.

Use an XML parser to check your document for well-formedness, if there
are any characters that are not allowed (though '£' is certainly
allowed) or there are any encoding issues then the parser will tell.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,001
Messages
2,570,254
Members
46,851
Latest member
CliftonCor

Latest Threads

Top