NetTalk Central
Toggle navigation
Login
Register
×
Welcome,Guest
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
saving xml with attibutes
« previous
next »
Print
Pages: [
1
]
Author
Topic: saving xml with attibutes (Read 2953 times)
alpatrick
Newbie
Posts: 7
saving xml with attibutes
«
on:
March 26, 2014, 08:44:44 AM »
I have to send out xml with my nettalks server using xfiles that looks like the following. It has attributes which I am not sure how to do. Notice the following line.
<UnstructuredPersonalUserName datatype="string">PATRON, TEST</UnstructuredPersonalUserName>
The entire message would look like the following.
<!DOCTYPE NCIPMessage PUBLIC "-//NISO//NCIP DTD Version 1.0//EN" "
http://www.niso.org/ncip/v1_0/imp1/dtd/ncip_v1_0.dtd
">
<NCIPMessage version="
http://www.niso.org/ncip/v1_0/imp1/dtd/ncip_v1_0.dtd
">
<LookupUserResponse>
<ResponseHeader>
<FromAgencyId>
<UniqueAgencyId>
<Scheme>
http://136.181.125.166:6601/IRCIRCD?target=get_scheme_values&scheme=UniqueAgencyId
</Scheme>
<Value>zv141</Value>
</UniqueAgencyId>
</FromAgencyId>
<ToAgencyId>
<UniqueAgencyId>
<Scheme>
http://136.181.125.166:6601/IRCIRCD?target=get_scheme_values&scheme=UniqueAgencyId
</Scheme>
<Value>melir</Value>
</UniqueAgencyId>
</ToAgencyId>
</ResponseHeader>
<UniqueUserId>
<UniqueAgencyId>
<Scheme>
http://www.sirsidynix.com/ncip/v1_0/imp1/schemes/uniqueagencyid/uniqueagencyid.scm
</Scheme>
<Value>UPRL</Value>
</UniqueAgencyId>
<UserIdentifierValue>123456789</UserIdentifierValue>
</UniqueUserId>
<UserOptionalFields>
<VisibleUserId>
<VisibleUserIdentifierType>
<Scheme>
http://www.niso.org/ncip/v1_0/imp1/schemes/visibleuseridentifiertype/visibleuseridentifiertype.scm
</Scheme>
<Value>Barcode</Value>
</VisibleUserIdentifierType>
<VisibleUserIdentifier>123456789</VisibleUserIdentifier>
</VisibleUserId>
<NameInformation>
<PersonalNameInformation>
<UnstructuredPersonalUserName datatype="string">PATRON, TEST</UnstructuredPersonalUserName>
</PersonalNameInformation>
</NameInformation>
<UserPrivilege>
<UniqueAgencyId>
<Scheme>
http://www.sirsidynix.com/ncip/v1_0/imp1/schemes/uniqueagencyid/uniqueagencyid.scm
</Scheme>
<Value>UPRL</Value>
</UniqueAgencyId>
<AgencyUserPrivilegeType>
<Scheme>
http://www.niso.org/ncip/v1_0/imp1/schemes/agencyuserprivilegetype/public.scm
</Scheme>
<Value>Staff</Value>
</AgencyUserPrivilegeType>
</UserPrivilege>
<UserAddressInformation>
<ElectronicAddress>
<ElectronicAddressType>
<Scheme>
http://www.iani.org/assignments/uri-schemes.scm
</Scheme>
<Value>mailto</Value>
</ElectronicAddressType>
<ElectronicAddressData>schaubmd@mcls.org</ElectronicAddressData>
</ElectronicAddress>
</UserAddressInformation>
</UserOptionalFields>
</LookupUserResponse>
</NCIPMessage>
Thanks
Logged
Bruce
Global Moderator
Hero Member
Posts: 11250
Re: saving xml with attibutes
«
Reply #1 on:
March 26, 2014, 11:47:08 PM »
Hi Allan,
probably a good place to start is here;
http://www.capesoft.com/docs/xFiles/xfiles.htm#SavingFieldsAsAttributes
Basically the field (in this case "datatype") is set to be an attribute using the
SetAsAttribute
method.
the version in
<NCIPMessage version="
http://www.niso.org/ncip/v1_0/imp1/dtd/ncip_v1_0.dtd
">
is slightly different because that's just placed in the
_pFileBoundaryAttribute
property.
cheers
Bruce
Logged
Print
Pages: [
1
]
« previous
next »
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
saving xml with attibutes