문제

I am trying to add data in Field tag like

  <Data>
  <Rows>
    <Row>
      <Field Name='Title'>Configuration</Field>
      <Field Name='JSONData'> { "URL":"https://example.com&Isdlg=1")
                </Field>
        </Row>
  </Rows>
</Data>

But it is giving me error on &Isdlg that Isdlg is not defined. I think because of & sign Isdlg is considered as a veriable. So is there is solution to store such data. Thanks in advance

도움이 되었습니까?

해결책

You could try wrapping it in CDATA tags

<Data>
  <Rows>
    <Row>
      <Field Name='Title'>Configuration</Field>
      <Field Name='JSONData'><![CDATA[{ "URL":"https://example.com&Isdlg=1"}]]></Field>
    </Row>
  </Rows>
</Data>

or escaping the ampersand

<Data>
  <Rows>
    <Row>
      <Field Name='Title'>Configuration</Field>
      <Field Name='JSONData'> { "URL":"https://example.com&amp;Isdlg=1"}</Field>
    </Row>
  </Rows>
</Data>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top