AnnotatedString

Usa AnnotatedString para las strings de caracteres. Agrega una anotación de hasta 16 caracteres a un elemento.

Atributos

En la siguiente tabla, se describen los atributos de AnnotatedString:

Atributo ¿Es obligatorio? Tipo Descripción
annotation Opcional ShortString Una anotación de hasta 16 caracteres asociada con una string de caracteres.

Ejemplos

Correo electrónico

XML

    <Email annotation="work">john.a.smith@26003.org</Email>

JSON

    "Email": [
      {
        "annotation": "work",
        "value": "john.a.smith@26003.org"
      }
    ]

Fax

XML

    <Fax annotation="cell">304-555-0971</Fax>

JSON

    "Fax": [
      {
        "annotation": "cell",
        "value": "304-555-0971"
      }
    ]

Teléfono

XML

    <Phone annotation="office">304-555-1234</Phone>

JSON

    "Phone": [
      {
        "annotation": "office",
        "value": "304-555-1234"
      }
    ]