ok, i have an xml file which i download from somewhere, an dtd from the same place and an xslt file i created myself to transform the xml to html.
the xslt works fine, but only by changing the xml i was given. this is because the xml file contains many "&" "?" between tags so i've had to change them to { or wotever. but seeing as i will have to download fresh xml each time i'd like to avoid using a big regex to do this.
so i need to know where this DTD i've got comes in to play. the DTD specifies that the bits with "?" and "&" are "PCDATA" which is fine by me, but i'm not sure how to tell my processor to use it. the xml file has no xml headers i've commonly seen, it just starts with <data>.
can i use a standard header to say "use this dtd" and if i later want to make a new xml schema (it appeals more to my programmers mind ;-) can i use the same heading?
OR is there a way of telling the parser not to examine data in between tags, ie. assume it's ALL PCDATA?
i'd appreciate any help or discussion. xml (like java) has so many buzz words it makes it difficult to learn from scratch.
the xslt works fine, but only by changing the xml i was given. this is because the xml file contains many "&" "?" between tags so i've had to change them to { or wotever. but seeing as i will have to download fresh xml each time i'd like to avoid using a big regex to do this.
so i need to know where this DTD i've got comes in to play. the DTD specifies that the bits with "?" and "&" are "PCDATA" which is fine by me, but i'm not sure how to tell my processor to use it. the xml file has no xml headers i've commonly seen, it just starts with <data>.
can i use a standard header to say "use this dtd" and if i later want to make a new xml schema (it appeals more to my programmers mind ;-) can i use the same heading?
OR is there a way of telling the parser not to examine data in between tags, ie. assume it's ALL PCDATA?
i'd appreciate any help or discussion. xml (like java) has so many buzz words it makes it difficult to learn from scratch.