Results 1 to 4 of 4

Thread: StringBuilder

  1. #1
    tmotse is offline Member
    Join Date
    Mar 2010
    Posts
    17
    Rep Power
    0

    Default StringBuilder

    Hi Guys

    I want to append/ strore this XML into a String Builder..please help

    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservices.server.vit.za.mfgad.com/">
    <soapenv:Header/>
    <soapenv:Body>
    <web:newOutboundVoiceRouteRequest>
    <requestDetail>
    <assignedUser>?</assignedUser>
    <externalCorrIdentifier>?</externalCorrIdentifier>
    <externalIdentifier>?</externalIdentifier>
    <interactionSource>?</interactionSource>
    <mediaChannelRouteIdentifier>?</mediaChannelRouteIdentifier>
    <dialNumbers>?</dialNumbers>
    <displayInformation>?</displayInformation>
    <externalPartyIdentifier>?</externalPartyIdentifier>
    <externalPartyName>?</externalPartyName>
    </requestDetail>
    </web:newOutboundVoiceRouteRequest>
    </soapenv:Body>
    </soapenv:Envelope>

    Thanks

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,447
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by tmotse View Post
    Hi Guys

    I want to append/ strore this XML into a String Builder..please help
    Did you read the API documentation for that class? It has several append( ... ) methods available.

    kind regards,

    Jos

  3. #3
    al_Marshy_1981 is offline Senior Member
    Join Date
    Feb 2010
    Location
    Waterford, Ireland
    Posts
    748
    Rep Power
    5

    Default

    umm read in the file and assign each line to Stringbuilder instance. using .append() ...am I missing something? other than your next question which I will not say now :)

  4. #4
    tmotse is offline Member
    Join Date
    Mar 2010
    Posts
    17
    Rep Power
    0

Similar Threads

  1. StringBuilder v/s StringBuffer
    By Pooja Deshpande in forum New To Java
    Replies: 9
    Last Post: 04-11-2008, 09:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •