deleted 136 characters in body
Source Link

I change requirements. I need to parse this xml and get last-name by Id(99999) or by Id(55555) based on what I set in method.

<?xml version="1.0"?>
<xmldata
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" status="SUCCESS">
    <recordset name="object" nritems="1" acl="AW">
        <record name="object" id="99999" acl="DW">
            <field name="last-name" acl="TW">**SS**</field>
        </record>
        <record name="object" id="55555" acl="DW">
            <field name="last-name" acl="TW">**Jony**</field>
        </record>
    </recordset>
</xmldata>

I am trying this for Id

DOM.Document document = new DOM.Document();
document.load(responseBody);
String subjectID = document.getRootElement()
            .getChildElement('recordset', null)
            .getChildElement('recordname', null).getText();

I change requirements. I need to parse this xml and get last-name by Id(99999) or by Id(55555) based on what I set in method.

<?xml version="1.0"?>
<xmldata
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" status="SUCCESS">
    <recordset name="object" nritems="1" acl="AW">
        <record name="object" id="99999" acl="DW">
            <field name="last-name" acl="TW">**SS**</field>
        </record>
        <record name="object" id="55555" acl="DW">
            <field name="last-name" acl="TW">**Jony**</field>
        </record>
    </recordset>
</xmldata>

I am trying this for Id

DOM.Document document = new DOM.Document();
document.load(responseBody);
String subjectID = document.getRootElement()
            .getChildElement('recordset', null)
            .getChildElement('recordname', null).getText();

I need to parse this xml and get last-name by Id(99999) or by Id(55555) based on what I set in method.

<?xml version="1.0"?>
<xmldata
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" status="SUCCESS">
    <recordset name="object" nritems="1" acl="AW">
        <record name="object" id="99999" acl="DW">
            <field name="last-name" acl="TW">**SS**</field>
        </record>
    </recordset>
</xmldata>

I am trying this for Id

DOM.Document document = new DOM.Document();
document.load(responseBody);
String subjectID = document.getRootElement()
            .getChildElement('recordset', null)
            .getChildElement('recordname', null).getText();
added 107 characters in body
Source Link

HiI change requirements. I need to parse this xml and get last-name by Id(77799999) and nameor by Id(Jony55555) based on what I set in method.

<?xml version="1.0"?>
<xmldata
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" status="SUCCESS">
    <recordset name="object" nritems="1" acl="AW">
        <record name="object" id="**02012**"id="99999" acl="DW">
            <field name="sysname="last-subjnr"name" acl="TW">11<acl="TW">**SS**</field>
        </record>
        <record name="object" id="55555" acl="DW">
            <field name="last-name" acl="TW">**Jony**</field>
        </record>
    </recordset>
</xmldata>

I am trying this for Id

DOM.Document document = new DOM.Document();
document.load(responseBody);
String subjectID = document.getRootElement()
            .getChildElement('recordset', null)
            .getChildElement('recordname', null).getText();

Hi I need to parse this xml and get Id(777) and name(Jony)

<?xml version="1.0"?>
<xmldata
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" status="SUCCESS">
    <recordset name="object" nritems="1" acl="AW">
        <record name="object" id="**02012**" acl="DW">
            <field name="sys-subjnr" acl="TW">11</field>
            <field name="last-name" acl="TW">**Jony**</field>
        </record>
    </recordset>
</xmldata>

I am trying this for Id

DOM.Document document = new DOM.Document();
document.load(responseBody);
String subjectID = document.getRootElement()
            .getChildElement('recordset', null)
            .getChildElement('recordname', null).getText();

I change requirements. I need to parse this xml and get last-name by Id(99999) or by Id(55555) based on what I set in method.

<?xml version="1.0"?>
<xmldata
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" status="SUCCESS">
    <recordset name="object" nritems="1" acl="AW">
        <record name="object" id="99999" acl="DW">
            <field name="last-name" acl="TW">**SS**</field>
        </record>
        <record name="object" id="55555" acl="DW">
            <field name="last-name" acl="TW">**Jony**</field>
        </record>
    </recordset>
</xmldata>

I am trying this for Id

DOM.Document document = new DOM.Document();
document.load(responseBody);
String subjectID = document.getRootElement()
            .getChildElement('recordset', null)
            .getChildElement('recordname', null).getText();
added 5 characters in body
Source Link

Hi I need to parse this xml and get Id(777) and name(Jony)

<?xml version="1.0"?>
<xmldata
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" status="SUCCESS">
    <recordset name="object" nritems="1" acl="AW">
        <record name="object" id="**02012**" acl="DW">
            <field name="sys-subjnr" acl="TW">11</field>
            <field name="name"name="last-name" acl="TW">**Jony**</field>
        </record>
    </recordset>
</xmldata>

I am trying this for Id

DOM.Document document = new DOM.Document();
document.load(responseBody);
String subjectID = document.getRootElement()
            .getChildElement('recordset', null)
            .getChildElement('recordname', null).getText();

Hi I need to parse this xml and get Id(777) and name(Jony)

<?xml version="1.0"?>
<xmldata
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" status="SUCCESS">
    <recordset name="object" nritems="1" acl="AW">
        <record name="object" id="**02012**" acl="DW">
            <field name="sys-subjnr" acl="TW">11</field>
            <field name="name" acl="TW">**Jony**</field>
        </record>
    </recordset>
</xmldata>

I am trying this for Id

DOM.Document document = new DOM.Document();
document.load(responseBody);
String subjectID = document.getRootElement()
            .getChildElement('recordset', null)
            .getChildElement('recordname', null).getText();

Hi I need to parse this xml and get Id(777) and name(Jony)

<?xml version="1.0"?>
<xmldata
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" status="SUCCESS">
    <recordset name="object" nritems="1" acl="AW">
        <record name="object" id="**02012**" acl="DW">
            <field name="sys-subjnr" acl="TW">11</field>
            <field name="last-name" acl="TW">**Jony**</field>
        </record>
    </recordset>
</xmldata>

I am trying this for Id

DOM.Document document = new DOM.Document();
document.load(responseBody);
String subjectID = document.getRootElement()
            .getChildElement('recordset', null)
            .getChildElement('recordname', null).getText();
added 4 characters in body
Source Link
Loading
deleted 4 characters in body
Source Link
Tushar Sharma
  • 28.6k
  • 7
  • 31
  • 55
Loading
Source Link
Loading