![]() | |
#31
| |||
| |||
|
|
I have id and xml columns in mytable. I want to update an element called myelement with the following UPDATE MyTable SET xml.modify ('replace value of (/root/child/grandchild/myelement)[1] with xs:dateTime("2002-05-30T09:30:10Z")') WHERE id = '00000000-0000-0000-0000-000000000000' But I got XQuery [mytable.xml.modify()]: The target of 'replace value of' must be a non-metadata attribute or an element with simple typed content, found 'element(myelement,xdt:untyped) ?' |
#32
| |||
| |||
|
|
I have id and xml columns in mytable. I want to update an element called myelement with the following UPDATE MyTable SET xml.modify ('replace value of (/root/child/grandchild/myelement)[1] with xs:dateTime("2002-05-30T09:30:10Z")') WHERE id = '00000000-0000-0000-0000-000000000000' But I got XQuery [mytable.xml.modify()]: The target of 'replace value of' must be a non-metadata attribute or an element with simple typed content, found 'element(myelement,xdt:untyped) ?' |
#33
| |||
| |||
|
|
I have id and xml columns in mytable. I want to update an element called myelement with the following UPDATE MyTable SET xml.modify ('replace value of (/root/child/grandchild/myelement)[1] with xs:dateTime("2002-05-30T09:30:10Z")') WHERE id = '00000000-0000-0000-0000-000000000000' But I got XQuery [mytable.xml.modify()]: The target of 'replace value of' must be a non-metadata attribute or an element with simple typed content, found 'element(myelement,xdt:untyped) ?' |
#34
| |||
| |||
|
|
I have id and xml columns in mytable. I want to update an element called myelement with the following UPDATE MyTable SET xml.modify ('replace value of (/root/child/grandchild/myelement)[1] with xs:dateTime("2002-05-30T09:30:10Z")') WHERE id = '00000000-0000-0000-0000-000000000000' But I got XQuery [mytable.xml.modify()]: The target of 'replace value of' must be a non-metadata attribute or an element with simple typed content, found 'element(myelement,xdt:untyped) ?' |
#35
| |||
| |||
|
|
Roy wrote: I have id and xml columns in mytable. I want to update an element called myelement with the following UPDATE MyTable SET xml.modify ('replace value of (/root/child/grandchild/myelement)[1] with xs:dateTime("2002-05-30T09:30:10Z")') WHERE id = '00000000-0000-0000-0000-000000000000' But I got XQuery [mytable.xml.modify()]: The target of 'replace value of' must be a non-metadata attribute or an element with simple typed content, found 'element(myelement,xdt:untyped) ?' How does the current content of that 'myelement' look, does it contain child elements? -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ |
#36
| |||
| |||
|
|
Roy wrote: I have id and xml columns in mytable. I want to update an element called myelement with the following UPDATE MyTable SET xml.modify ('replace value of (/root/child/grandchild/myelement)[1] with xs:dateTime("2002-05-30T09:30:10Z")') WHERE id = '00000000-0000-0000-0000-000000000000' But I got XQuery [mytable.xml.modify()]: The target of 'replace value of' must be a non-metadata attribute or an element with simple typed content, found 'element(myelement,xdt:untyped) ?' How does the current content of that 'myelement' look, does it contain child elements? -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ |
#37
| |||
| |||
|
|
Roy wrote: I have id and xml columns in mytable. I want to update an element called myelement with the following UPDATE MyTable SET xml.modify ('replace value of (/root/child/grandchild/myelement)[1] with xs:dateTime("2002-05-30T09:30:10Z")') WHERE id = '00000000-0000-0000-0000-000000000000' But I got XQuery [mytable.xml.modify()]: The target of 'replace value of' must be a non-metadata attribute or an element with simple typed content, found 'element(myelement,xdt:untyped) ?' How does the current content of that 'myelement' look, does it contain child elements? -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ |
#38
| |||
| |||
|
|
Roy wrote: I have id and xml columns in mytable. I want to update an element called myelement with the following UPDATE MyTable SET xml.modify ('replace value of (/root/child/grandchild/myelement)[1] with xs:dateTime("2002-05-30T09:30:10Z")') WHERE id = '00000000-0000-0000-0000-000000000000' But I got XQuery [mytable.xml.modify()]: The target of 'replace value of' must be a non-metadata attribute or an element with simple typed content, found 'element(myelement,xdt:untyped) ?' How does the current content of that 'myelement' look, does it contain child elements? -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ |
#39
| |||
| |||
|
|
Roy wrote: I have id and xml columns in mytable. I want to update an element called myelement with the following UPDATE MyTable SET xml.modify ('replace value of (/root/child/grandchild/myelement)[1] with xs:dateTime("2002-05-30T09:30:10Z")') WHERE id = '00000000-0000-0000-0000-000000000000' But I got XQuery [mytable.xml.modify()]: The target of 'replace value of' must be a non-metadata attribute or an element with simple typed content, found 'element(myelement,xdt:untyped) ?' How does the current content of that 'myelement' look, does it contain child elements? -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ |
#40
| |||
| |||
|
|
Roy wrote: I have id and xml columns in mytable. I want to update an element called myelement with the following UPDATE MyTable SET xml.modify ('replace value of (/root/child/grandchild/myelement)[1] with xs:dateTime("2002-05-30T09:30:10Z")') WHERE id = '00000000-0000-0000-0000-000000000000' But I got XQuery [mytable.xml.modify()]: The target of 'replace value of' must be a non-metadata attribute or an element with simple typed content, found 'element(myelement,xdt:untyped) ?' How does the current content of that 'myelement' look, does it contain child elements? -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ |
![]() |
| Thread Tools | |
| Display Modes | |
| |