Questions tagged [xmlelement]
45 questions
12
votes
2 answers
How to replace ' or any special character in when using XMLELEMENT Oracle
I have the below query. How to keep the apostrophe (') intact and not getting it replaced by &apos
There are other characters also I want to handle like &
SELECT RTRIM(XMLAGG(XMLELEMENT(E,'I''m'||':')).EXTRACT('//text()'),':')
FROM…

Rajiv A
- 941
- 5
- 14
- 30
5
votes
2 answers
How do I change the order of XmlElements?
I have an XML that has various elements, but one of them named RowId, I'd like to move to the top of the respective XML array...essentially sorting the elements in my way. My below code can be copied/pasted for you to test with.
What's the best way…

William YK
- 1,025
- 12
- 26
3
votes
0 answers
XML tag replace
I need to replace with in the below XML code. but the result removed tag from .
var parser, xmlDoc;
var text = "" +
"Teting

Anoop Sankar
- 619
- 5
- 16
1
vote
1 answer
Escaping colon in PowerShell XmlDocument.CreateElement
I am trying to escape a colon in the CreateElement method. So for example I want to change the following:
$node = $xmldoc.CreateElement("test:example")
To give me a node that looks like this:
But I unfortunately only get…

John
- 52
- 8
1
vote
1 answer
Unable to get element in XML

sunil20000
- 356
- 3
- 16
1
vote
1 answer
How to create a XML file with several elements inside an element through Excel?
I need to create a xml file where I have this structure:
…

gomes_36
- 11
- 2
1
vote
0 answers
How to set the element name programmatically in a list (xml serialization in c#)?
I have to write some xml files which are all similar and simple(no nested elements, not many attributes), like this:
something1
something2
something3
...
For the…

IAmUser
- 78
- 5
1
vote
1 answer
How to Deserialize XML to C# Object using XML attributes
Worked with Json until now.
Now I get an XML as data source and I would like to Deserialize it into C# objects using the XML attributes.
The problem, as I see it is that I would like to serialize the XML only from MSGData - so I set the DOCUMENT as…

Guy E
- 1,775
- 2
- 27
- 55
1
vote
1 answer
How to handle multiple xml API response results with go?
To handle a xml API response result, need to catch multiple cases. For a success case and a failure case, I can define 2 struct to handle both of them. The source as: go playground.
If the response data has many results, and they don't have the same…

realworld
- 159
- 2
- 10
1
vote
1 answer
When converting an XML document to an Array in php, is there a way to convert it back and to save it as an XML file where attributes are elements?
I am trying to read an XML file in PHP, edit some values and save it back.
I do it by opening the XML file in php. I then convert it using SimpleXML into an array. After doing the manipulation needed, I am struggling in returning that array into the…

Yan Ming Hu
- 13
- 2
1
vote
1 answer
How do I call `getChild('ItemCost currencyID="GBP"', NS).getValue()` from XML Response in Google Script
I have no problems with getting standard elements from an XML Response like getChild('BuyerEmail', NS).getText()but if there is extra data at the end like this getChild('ItemCost currencyID="GBP"', NS).getValue() then my code fails with a NUL. Its…

Razz
- 43
- 7
1
vote
0 answers
XMLELEMENT group of attributes
we are able to generate the XML structure shown below, where the data is linear with no grouping with respect to the models.
siv
ModelMasterEdit
…

Samir Das
- 11
- 1
1
vote
1 answer
Getting annotation values from @XMLElement in a java class
I am trying to get the @XMLElement annotations from a java class that I have, basically trying to make a map of variables where the annotation is required: true. However it prints out nothing.
I have a java class that has the following…

user3636602
- 73
- 1
- 10
1
vote
2 answers
Convert LISTAGG to XMLAGG
I have a query using LISTAGG function that need to convert to XMLAGG in order to handle string concatenation more than 4000 characters:
LISTAGG(NAME || INPUT || DESC || ' ' || '' || DATA || ' ', CHR(13)||CHR(10)) WITHIN GROUP(ORDER BY NAME)…

user2102665
- 429
- 2
- 11
- 26
1
vote
2 answers
How to select particular level node from xmldocument
XmlDocument is looks as below, want to select the one node that is under
so, any first node under path: soap:Envelope/soap:Body/ so, at below example, need to select "DynamicNode" element (But, It should not be through "DynamicNode" as…

dsi
- 3,199
- 12
- 59
- 102