Table of Contents

Search

  1. Preface
  2. Overview, Downloading, and Installing
  3. Administration API
  4. Identity Service API
  5. Screenflow Programming and SDK
  6. ActiveVOS WSHT API
  7. Embedding Request Forms in Standalone Web Pages
  8. XML-JSON for Process Central

APIs, SDKs, and Services

APIs, SDKs, and Services

Restrictions on JSON Representation of XML Content

Restrictions on JSON Representation of XML Content

The following restrictions exist for JSON representation of XML content:
  • Mixed types are not supported.
  • Element text nodes that contain only whitespace characters (including tabs, line feeds, and the like) are not serialized into JSON, since in general, these artifacts are due to pretty printing XML.
  • For the XML document that uses prefixes, you must assign a unique prefix for each namespace rather than overloading a prefix to multiple namespaces.
    <!-- Prefix 'p' is initially used for ns urn:ns:person. --> <p:person xmlns:p="urn:ns:person"> <!-- Prefix 'p' is re-used in contactInfo in a different ns. Avoid this case. --> <p:contactInfo xmlns:p="urn:ns:contactinfo" type="home" default="true" > </p:contactInfo> </p:person>
  • Elements or attributes names should follow standard rules for naming JavaScript variables. For example, do not use any punctuation marks of any kind in element (or attribute) names other than the underscore. For example,
    <first-name>
    is not allowed because it has a hyphen(-) in it name).
  • Avoid attributes or elements names that are reserved words in JavaScript. See
    https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Reserved_Words
    for more information.
  • Avoid elements or attributes named
    length
    .
  • Avoid having an element whose attributes and child elements have the same name. For example:
    <contactInfo xmlns="urn:ns:contactinfo" type="home" default="true" > <!-- Note 'type' is an attribute (of contactInfo) as well as a child element. Avoid this case. --> <type>foo</type> <phone type="voice">203-555-1212</phone> <phone type="fax">203-555-1213</phone> <email xmlns="">jsmith@example.com</email> </contactInfo>

0 COMMENTS

We’d like to hear from you!