When I add the following line:
<!ELEMENT book(category,title,author)>
into the xml document at the top the parser complains that the
xml document is not well formed.
Any advice?
-
- Read about how logo jewelry can be used to reward and motivate employees.
-
Recent Posts
- The Methods That The IContact Service Could Help Assist In Website Promotion
- 3D Computer Monitors Rock! – Take Computer Gaming To Another Level
- Using IContact To Optimize The Effectiveness Of Your Email Marketing
- The Reasons Behind Why You Should Use An IContact Coupon Code
- Software Programmers Or Software Developers Are Required To Develop Applications For Various Purposes.
- Several Quick Tricks For Boosting Your Internet Site Web Optimization
- Small businesses now have affordable access to sophisticated online and mobile telephone systems at affordable prices. Check out the big daddy of the Virtual PBX category with this RingCentral Review.
Blogroll
One Comment
Probably, you’ve omitted the <!DOCTYPE declaration to wrap your <!ELEMENT declaration.
The declarations of the elements don’t have to but should be composed in another file. I say "should be composed in another file," because you generally expect to create more than one document of a particular type; you don’t have to copy/paste the type definitions into every instance of the XML type; changes to the XML type need only be made in one place. Document Type Definitions or Schemas are used to define the elements. An XML document declares that it conforms to the definitions of that external file.
Schemas are becoming the preferred approach:
http://www.ibm.com/developerworks/xml/library/x-sbsch.html
If you just gotta put the definitions into the implementing document, here’s a simple intro to inline DTD specifications:
http://www.w3schools.com/DTD/dtd_intro.asp
Post a Comment