c***c 发帖数: 6234 | 1 I am new in XML and need some help.
for example
xml schema is
http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.demo.org"
xmlns="http://www.demo.org"
elementFormDefault="qualified">
| P*****x 发帖数: 72 | 2 Which XML parser are u using? For apache parser, you need to set the
external schema location in parser setup code.
【在 c***c 的大作中提到】 : I am new in XML and need some help. : for example : xml schema is : : http://www.w3.org/2001/XMLSchema" : targetNamespace="http://www.demo.org" : xmlns="http://www.demo.org" : elementFormDefault="qualified"> : :
| c***c 发帖数: 6234 | 3 Thank you for answering.
I do not use parser. Actually I do not have server. I just wrote xml file and
schema file. Then put them in the same folder.
OK I am new in XML and I am a little stupid. I just used XML to store data
(some servlet info) for JSP server. No schema and DTD
2 more questions. Please help
1. To use schema, do I need a server (or application like java, perl) to
handle it?
2. If no need server, how can I validate the schema (to check are there bugs
in schema)
If doesn't matte
【在 P*****x 的大作中提到】 : Which XML parser are u using? For apache parser, you need to set the : external schema location in parser setup code.
| P*****x 发帖数: 72 | 4 I don't know if there is way to validate XML file against schema w/o parser.
If using parser is ok w/ ur situation, u can find a parser and reference
at apache.org
To check bugs in schema is easy, if you have visual studio .net, just
load it into ide.
I am not expert of XML either but I happen to mess w/ apache C++ parsers
a lot.
【在 c***c 的大作中提到】 : Thank you for answering. : I do not use parser. Actually I do not have server. I just wrote xml file and : schema file. Then put them in the same folder. : OK I am new in XML and I am a little stupid. I just used XML to store data : (some servlet info) for JSP server. No schema and DTD : 2 more questions. Please help : 1. To use schema, do I need a server (or application like java, perl) to : handle it? : 2. If no need server, how can I validate the schema (to check are there bugs : in schema)
| d****c 发帖数: 24 | 5 use Altova XMLSpy, home edition is free.
and
bugs
【在 P*****x 的大作中提到】 : I don't know if there is way to validate XML file against schema w/o parser. : If using parser is ok w/ ur situation, u can find a parser and reference : at apache.org : To check bugs in schema is easy, if you have visual studio .net, just : load it into ide. : I am not expert of XML either but I happen to mess w/ apache C++ parsers : a lot.
|
|