[jdom-interest] Schema and Document Question

Kesav Kumar kesavk at voquette.com
Tue Oct 24 17:26:44 PDT 2000


Do this.

			Element doc = new Element("Document");
			doc.addAttribute(new Attribute("module",
"resource"));
			doc.addAttribute(new Attribute("type", "state
change"));
			doc.addAttribute(new Attribute("version", "1.0"));
			Namespace ns = Namespace.getNamespace("xsi",
"http://www.w3.org/1999/XMLSchema-instance");
			Attribute att = new
Attribute("noNamespaceSchemaLocation", "e58statechange.xsd", ns);
			doc.addAttribute(att);

Kesav Kumar
Software Engineer
Voquette, Inc.
650 356 3740
mailto:kesavk at voquette.com
http://www.voquette.com


-----Original Message-----
From: Carlos.Castillo at seagate.com [mailto:Carlos.Castillo at seagate.com]
Sent: Monday, October 23, 2000 3:56 PM
To: jdom-interest at jdom.org
Subject: [jdom-interest] Schema and Document Question


I have a schema and document that I have to write using Jdom

<?xml version="1.0" encoding="UTF-8"?>
<event module="resource" type="state change" version="1.0" xmlns:xsi
="http://www.w3.org/1999/XMLSchema-instance" xsi:noNamespaceSchemaLocation
="e58statechange.xsd">

....

</event>

The problemeis that I have no namespace and I can not add the schema and
document as attributes, can this be done using  the Api and how.


Regards Carlos




_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com



More information about the jdom-interest mailing list