Hi everybody;
I am with a problem of the xerces for organizer attributes to create xml.
Down follow description the problem.
////////////////
<resource identifier="RES-1C35A364-0A0B-1F0E-16D8-27696D21F314" type="webcontent" adlcp:scormtype="sco" href="index.html">
<metadata>
<schema>ADL SCORM</schema>
<schemaversion>1.2</schemaversion>
<adlcp:location>lom.xml</adlcp:location>
</metadata>
<file href="" />
</resource>
</resources>
///////////////////////////
The sequence attribute in the file.xml I want create is identifier à type à adlcp:scormtype à href .
When use the code down, the sequence return is adlcp:scormtype à href à identifier à type.
//create the element <resources> <resource>
dom.normalizeDocument();
Element resourcesresource = dom.createElement("resource");
//Element resourcesresource = dom.createElementNS(null,"resource");
resourcesresource.setAttribute("identifier",xml.getResourcesResourceIdentifier());
resourcesresource.setAttribute("type",xml.getResourcesResourceType());
resourcesresource.setAttribute("adlcp:scormtype",xml.getResourcesResourceAdlcpscormtype());
resourcesresource.setAttribute("href",xml.getResourcesResourceHref());
resources.appendChild(resourcesresource);
Please how I have resolve the problem.
Tanks.
Newton Bitar
Genius Instituto de Tecnologia
[EMAIL PROTECTED]
Tel.: +55 (92) 3614-6508
www.genius.org.br
************************************************************************************************** O conteúdo desse e-mail ou de seus anexos são confidenciais e restritos ao destinatário da mensagem. Se você recebeu esse e-mail por engano, por favor notifique o remetente imediatamente e não faça cópias ou distribua seu conteúdo para ninguém. ************************************************************************************************** The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email in error please notify the system manager or the sender immediately and do not disclose the contents to anyone or make copies. **************************************************************************************************
