When writing out documents which have schemas and namespaces, am I supposed to set up the createDocument() and createElement() calls differently, or just add the attributes myself?

For example, what code would I need to create:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<ndr:Template xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:ndr="http://www.opnet.com/ns/NetDoctor"; xsi:schemaLocation="http://www.opnet.com/ns/NetDoctor /schemas/Report_Template?v11">
<...tags...>
</ndr:Template>


I can read this file successfully, but I'm not having a lot of luck writing it. Now, I'm assuming that I'm not supposed to write those attributes in directly, so maybe that's my problem. Basically, the question leads to - is there a lot of builtin support for writing documents with schemas and namespaces, or do you just call createElement with tags that already have their namespace qualifier in the name (like "ndr:Template"), or do you call it with "Template" and you've already told it a namespace?

Thanks,
Nick


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to