NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: terryd on February 25, 2016, 07:07:57 AM
-
The webservice that I need to connect to has fields like this but the fields are not required fields
<Initials>string</Initials>
<SurName>string</SurName>
<IDNo>string</IDNo>
<CompanyName>string</CompanyName>
If I capture fields the raw data looks like this
<Initials>TP</Initials>
<SurName>Davidson</SurName>
<IDNo/>
<CompanyName/>
Is the format of the IDNo and CompnayName OK, or should it be created as <IDNo></IDNo> ?
-
those are ok. It's an XML short-hand for empty fields.
In theory, all the following are equivalent;
[leave the tag out completely]
<tag></tag>
<tag/>
Not all systems support all 3 forms (xFiles does obviously) but all 3 are legal xml.
cheers
Bruce
-
Thanks.
I knew they were valid I just wasn't sure if the client would require <tag></tag> instaed of <tag/>