Posted: Sun Jun 12, 2005 6:42 pm Post subject: Create XMLAttribute Output
Apprentice
Joined: 01 Jun 2005 Posts: 37
Hello,
I have to generate the following XML as message:
<?xml version="1.0" encoding="UTF-8" ?>
- <!-- edited with XMLSpy v2005 U (http://www.xmlspy.com) by Howard A Sullivan (ATTUS Technologies)
-->
- <ATTREQUEST xmlns="urn:attus_request">
<at:BILLINGCODE partnerid="45cfddd5b6c1" billingid="cfddd5b6c1" password="password" macaddress="00:0F:1F:13:43:4A" clientdefined2="clientdefined2" xmlns:at="urn:attus_request" />
- <NAMELIST>
- <OFC>
- <NAMES>
<NAME lastname="bin laden" firstname="Osama" othername="" allentities="" />
</NAMES>
</OFC>
</NAMELIST>
</ATTREQUEST>
how do I get the attribute segment of my parent element created
I have tried this:
SET OutputRoot.XMLNS.ATTUSWATCHDOGREQUEST.(XML.NamespaceDecl)xmlns = 'urn:attus_request';
SET MSGTYPE = FIELDVALUE(OutputRoot.XMLNS.(XML.Element)"xmlns:urn:attus_request:BILLINGCODE:partnerid".(XML.Element)"xmlns:urn:attus_request:BILLINGCODE:billingid".(XML.Element)"xmlns:urn:attus_request:BILLINGCODE:password".(XML.Element)"xmlns:urn:attus_request:BILLINGCODE:macaddress".(XML.Element)"xmlns:urn:attus_request:BILLINGCODE:clientdefined2".(XML.attr)extension);
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum