thanks to tom for the function. however it appears only to check for well-formedness. i tried to validate this:
<?xml version="1.0" standalone="yes"?>
<!DOCTYPE dicky-root [
<!ELEMENT dicky-root (p+)>
<!ELEMENT p (#PCDATA)>
]>
<dicky-root>
<p>Testing.</p>Testing.
</dicky-root>
which isn't valid - ie the dicky-root element can contain only a child p element, not text. but the message is that it's valid. have i missed something?
regards,
bruce melendy
content services manager
lonely planet publications
