← Prev in month ← Prev in thread
Next in thread → Next in month →

creating an xml message

From
Perez, Miguel <>
To
"''" <>
Date
2002-12-04T20:06:25Z
ID
<>
Thread
creating an xml message
Quick question:

I am trying to create a new xml message with the following at the top:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE myMessage SYSTEM "myDTD.dtd">


This should be pretty simple, but this is all I have so far:

DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
        try {
            DocumentBuilder builder = factory.newDocumentBuilder();
  
            document = builder.newDocument();

....



I believe the second line is a DocumentType Node, but how is the first line
created?

Thanks,

Miguel
← Prev in month ← Prev in thread
Next in thread → Next in month →