File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
XML and Related Technologies
DTD & Namespace
Joined: Jul 13, 2004
Jul 13, 2004 07:20:00
The following code throws an error : Reference to undeclared namespace prefix:
<!DOCTYPE test:firstname [
<!ELEMENT test:firstname (#PCDATA) >
<!ATTLIST test:firstname xmlns:test CDATA "namespace">
Could anyone let me know why this code is throwing the error?
Joined: Dec 24, 2000
Jul 13, 2004 23:05:00
The error is with namespace declaration. Try to provide xslns, the general namespace from w3c, and also tyr to put "test:firstname"(try this)
Joined: Jan 23, 2002
Jul 19, 2004 08:13:00
DTD doesn't support namespaces. You should use the
W3C XML Schema
's a nice tutorial).
Effective Unit Testing
It is sorta covered in the
JavaRanch Style Guide
subject: DTD & Namespace
HeaderElements must be namespace qualified when create soap client
DTD & Namespaces
HELP!: How to set default namespace in JDOM
Struts2 and Eclipse: No configuration found for the specified action in namespace: ''
struts 2 error ---- Could not find action or result
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015