Name cannot begin with the ':' character, hexadecimal value 0x3A” when I try to parse an xml -


i’m receiving error “name cannot begin ':' character, hexadecimal value 0x3a” when try parse xml. xml attached in image. please me resolve issue? i’m using below lines of code parse through document. i’ve no idea why error coming it’s crashing in client network. @ place, when runt code don’t error.

the xml below.

<fields>   <field name="ows_target" value="jiradevinstance" />   <field name="ows_mappingxml" value="<mappings>    <mapping id="1" source="enddatetime" sourcedatatype="datetime" sourcedataformat="mm/dd/yy hh:mm tt" target="duedate"  targetdatatype="datetime" targetdataformat="yyyy-mm-dd hh:mm tt zzz"/><mapping id="2" source="issueraisedby"    sourcedatatype="string" sourcedataformat="#-1:domain/username" target="reporter" targetdatatype="string"        targetdataformat="username" /><mapping id="3" source="raname" sourcedatatype="string" sourcedataformat="#-          1:domain/username" targetdatatype="string" target="submitter" targetdataformat="username" /><mapping id="4"             source="rcacomments" sourcedatatype="string" target="summary" targetdatatype="string" /><mapping id="5"             source="racomments" sourcedatatype="string" target="summary" targetdatatype="string" /></mappings>" />   <filters>     <field name="ticketnumber" value="dt_mint_2025" />     <field name="remedyincidenetnumber" />   </filters> </fields> 

i’m trying assign xml value of child node xml document.

xmlnode mappingnode; mappingnode = indoc.createelement("sample"); xmlnamespacemanager xmlns = new xmlnamespacemanager(indoc.nametable); xmlns.addnamespace("my", indoc.namespaceuri); if (indoc.selectsinglenode("my:fields/my:field[@name='ows_mappingxml']",xmlns) != null   

&& indoc.selectsinglenode("my:fields/my:field[@name='ows_mappingxml']",xmlns).attributes["value"].value != null) mappingnode.innerxml = indoc.selectsinglenode("my:fields/my:field[@name='ows_mappingxml']",xmlns).attributes["value"].value;

the indoc.namespaceuri empty while name table has entries in it.

any appreciated. please revert if need more details.

i'm not quite sure why got particular error message, can't put xml elements inside xml attribute in way (value="<mappings> ...</mappings>"). isn't xml.

can't fix it, depends on bad xml coming from.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -