How to treat an XML file that uses html characters?

I need to shoot a userlist to my web application, and which means to invoke a web service on the authentication server.  I managed to do exactly that, but the XML file, that I give myself to face looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body><ns1:getAllUserInfoResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://web.ws">
<getAllUserInfoReturn xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
&lt;?xml version = '1.0'?&gt;
&lt;USER&gt;
&lt;ROW num=&quot;1&quot;&gt;
&lt;USER_ID&gt;25214&lt;/USER_ID&gt;
&lt;LOGIN_ID&gt;JDOE&lt;/LOGIN_ID&gt;
&lt;NAME_LAST&gt;JOHN&lt;/NAME_LAST&gt;
&lt;NAME_FIRST&gt;DOE&lt;/NAME_FIRST&gt;
&lt;NAME_MI&gt;Q&lt;/NAME_MI&gt;
&lt;NAME_FI&gt;A&lt;/NAME_FI&gt;
&lt;EMAIL&gt;[email protected]&lt;/EMAIL&gt;
&lt;OFFICE_PHONE&gt;5551212&lt;/OFFICE_PHONE&gt;
&lt;OFFICE_STREET1&gt;123 Main Street&lt;/OFFICE_STREET1&gt;
&lt;/ROW&gt; &lt;/USER&gt; 
( etc )
</getAllUserInfoReturn>
</ns1:getAllUserInfoResponse>
</soapenv:Body>
</soapenv:Envelope> 

I need to loop over that and get usernames, ID, rights, etc., but with her looking like that, I have my work cut out for me (I think).  I don't know if there is an easy way to replace the entities in an XML file (the docs seem to be down), and if there is, I don't know about it.

Any ideas?

BreakawayPaul wrote:

I need to loop over that and get usernames, ID, rights, etc., but with her looking like that, I have my work cut out for me (I think).  I don't know if there is an easy way to replace the entities in an XML file

Assuming that you already have the XML file using something like , then the following single line of code is sufficient:

<,>"') (, false) >.

Note, however, that your XML file will then contain an error. The processing instruction.", occurs twice.

Tags: ColdFusion

Similar Questions

  • How to load an XML file for salesforce using API BULK?

    Hello

    Please let me know how to download an XML file for salesforce using API bulk?

    Thank you

    AND

    Hello

    I think it's a matter of SalesForce.com more and think that you will have better luck in looking at SOAP API Developer Guide for salesforce. Sending of a server API SOAP request is very straight forward and there are several tutorials and well documented in this topic.

    See you soon,.

    Stefan

  • How to import the XML file into an oracle table using a BPEL process

    Hi friends

    How can I import XML file in the db oracle table using a BPEL process

    (1) I have generated an XML file in my local system with a field
    (2) I created a temporary table in my oracledb with the same field in the XML file
    (3) that I want to import these XML files which is the local host to my db oracle using a BPEL process
    (4) for that what steps should I me fallow please suggest me if there is no document for this?

    Thanks in advance
    AT

    Hi to

    Here you go...

    http://blogs.Oracle.com/ajaysharma/2011/03/using_file_adapter_database_adapter_and_mediator_component_in_soa_11g.html

    I hope that helps!

    Thank you
    AJ

  • How to change a PDF file that I can only open in Photoshop CC to a file DO I use for sending and for opening Adobe Reader?

    How to change a PDF file that I can only open in Photoshop CC to a file DO I use for sending and for opening Adobe Reader?

    What is the reason to be here?

    Acrobat Reader must be able to open a pdf file created in Photoshop so why involve Illustrator?

    Have you tried to open or convert the file with Illustrator?

  • How to have an XML file in the app and / or installation

    My application is an xml file that accompanies it (actually more than one) and contains data for the application

    We choose based on user input.

    Is it possible to have a resource file such as an xml file that is provided with the blackberry .cod file?

    I think of how you can put a java application needs resources in the java app jar file.

    If I can't do that, where these xml files should be?

    I see some file access described in the forum using the SD card.

    But obviously I don't want that, because these files xml are always necessary when the user starts the application.

    These files are part of the application, they should not be changed by the user.

    How would this work?

    Thank you!!

    lucidbee

    You add the XML file to your project and get as a resource in your code.

    See the following article:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800620/How_To _...

  • How can I delete a file in use by demon updater?

    How can I delete a file that says it's in use by Daemon updater.exe?

    I have a computer with a hard drive of GB 914, who recently said that it is impossible to install a program because the disk is full. While they inspected, I found that it only reported about 200 GB of usage and after you remove files non-essential, I released 57 GB of disk space.

    I made sure to show all files and installed a file tree Locator and found a log of 684 GB file but when I tried to remove it, it said that the file was not in the specified location. Then I manually found the file in system32 tree and he said that it is impossible to delete the file because it is used by daemonupdater.exe.

    can anyone help please?

    Credonem, welcome to the forum.

    I suggest start safe mode to see if that helps with your problem.  Safe mode starts only the drivers and programs needed.

    Please, click on "Thumbs Up +" if I helped you and click "Accept as Solution" If your problem is resolved.

  • How can I save xml file n, run the xml file? Please help me

    How can I save xml file n, run the xml file? Please help me

    Hello

    The question you have posted will be well suited in the MSDN forum. Click on the link below.

    http://social.msdn.Microsoft.com/forums/en/categories/

    In the meantime, I suggest you to return the item mentioned below.

    How to use XML Notepad to create an XML document

    http://support.Microsoft.com/kb/296560

  • How to find the library files that are not due to problems of indexing

    I need help to know how to find the library files that are not as a result of indexing problems?

    I use Windows 7

    Thank you

    Charlene

    Try to open the folder that the library uses directly.  For example, if it is your Documents folder, open C:\Users\Charlene\Documents

  • OSB: How to read the xml file, which is in OSB project

    Hello

    We have a generic proxy (PG1) reporting and deals alerts, this proxy is called in the pipelines of proxies anothers (P1... PN) in several projects. Each client proxy (P1... PN) PN) before call proxy PG1, configures a variable with syntactic alert or report.

    We thought it would be a good idea to store the specifications for all the proxies of a project as an xml file, so that the proxy PG could read the xml file. This file will be in the OSB project.

    The questions are:
    -proxy can read a xml file that is in the OSB project?
    S ' Please, are all the documentation for this?

    Thank you

    Kind regards

    You can always do customization to work with the properties defined in a XML xquery. The key to this is to use the customization of reference instead of find and replace the customization, similar to the service account customizations.
    Keep your real estate to as properties_dev of env xquery specific xmls, properties_sit etc then apply customization of service proxy xquery reference reference specific correct env.

  • Extracting XML error. The XML file that is assigned in the configuration.xml is either incorrect or damaged.

    1. some web pages gives "error extracting XML. The XML file that is assigned in the configuration.xml is wrong or corrupt.

    2 Youtube gives, after having pressed the button start, message "an error has occurred. Please try again later.
    Even youtube opening page with IE, there is no problem.

    3. scrolling on Mozilla firefox pages only works with the sidebar not with the mouse wheel.

    Other user accounts on this computer is not these problems.

    BR Juha

    This can be caused by a recent update of Flash 11.3.

    See:

  • How can I fix missing files that I can't get to the control panel?

    How can I fix missing files that I can't get to the control panel. I get error "Windows cannot find 'C:\WINDOWS\system32\rundll32.exe'. Make sure you typed the name correctly and then try again. To search for a file, click the Start button and then click on search"when I go to the control panel and click on add or remove the problem, and I get a similar message when I go to something similar

    Hello Braxtonspangler,

    I'm assuming that you get this error when you try to access some or all of the files/folders.  If this is the case, please see the link below.  Please let us know status.

    Microsoft Answers:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-files/Windows-cannot-find-cwindowssystem32rundll32exe/664c5b59-515C-472e-A872-a41f3e0562c1

    Thank you

  • How to convert a PDF file that is password protected to a MS Word file so that I can change it?

    How to convert a PDF file that is password protected to a MS Word file so that I can change it?

    Hi smart integration

    There is no way to convert a file protected password unless you know the password.

    Contact the sender to know the password of the file.

  • I can't seem to figure out how to import multiple XML files in Flex

    I can't figure out how to import multiple XML files in Flex and connect it to the DataGrids. Does anyone have ideas how to make this happen?

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = "955" = "600" minHeight >

    < s:creationComplete >
    <! [CDATA]
    loader.addEventListener (Event.COMPLETE, getData);
    loader.load (new URLRequest ("http://www.student.hint.no/~100471/mmt134/images/Reiseregning-Konradi_Kare_2011-01-30.xml"));   

    []] >
    < / s:creationComplete >

    < fx:Declarations >
    <! - Place non-visual elements (e.g., services, items of value) here - >
    < / fx:Declarations >

    < fx:Script >
    <! [CDATA]
    var testData:XML;

    var loader: URLLoader = new URLLoader();

    public void getData(E:Event):void {}
    testData = new XML (E.currentTarget.data);
    grid.dataProvider = testData.descendants ('TravelSpecificationVO');
    }

    []] >
    < / fx:Script >

    < mx:TabNavigator "22.7" = x y = '39.35' width = '536' height = "312" >
    < s:NavigatorContent label = "Tab 1" width = "100%" height = "100%" >
    < mx:DataGrid = "1.3" x = "-2.35" width = "507" height = "269" id = "grid" >
    < mx:columns >
    < mx:DataGridColumn dataField = "to_destinasion" headerText = "Til destinasjon" / >
    < mx:DataGridColumn dataField = "from_date" headerText = "Klokkeslett" / >
    < mx:DataGridColumn dataField = "from_destinasion" headerText = "Fra destinasjon" / >
    < mx:DataGridColumn dataField = "to_date" headerText = "Klokkeslett" / >
    < / mx:columns >
    < / mx:DataGrid >
    < / s:NavigatorContent >
    < s:NavigatorContent label = "hkuhk" width = "100%" height = "100%" >
    < / s:NavigatorContent >
    < / mx:TabNavigator >
    < / s:Application >

    Hope this helps you:

    
    
     
      
     
    
     
      
       
       
       
       
      
     
    
    
    

    Let me know if you need additional information.

    Best regards

    Pablo Souza

  • Open the file by using wildcard characters

    Anyone know how to open a file by using wildcard characters in the name.

    For example, a certain folder will contain a number of files, with the name built as follows:

    CALDB_ then a serial number with 6 digits and then 14 characters, which could be ANYTHING.  so it might look like this

    CALDB_123456_33KA1234567890.txt

    or

    CALDB_123457_33KA1234567890.txt

    The key part of the file name is the serial number of 6 digits that is unique and the CALDB_ which is always the same.

    I would like to use a command file with the name of the file as something like CALDB_123456_*.txt, but it doesn't seem to work.

    Can anyone help?

    Thank you

    Hi Dylan,.

    Along our forum, I searched and found a similar question for the use of wildcards in file selection. An active user (unclebump) has responded to this request with a VI, with which you can select a folder on your computer that is scanned for some files. I adjusted this VI to select CALDB_ files *. You will find this file (zipped), including my attached test folder.

    Maybe it will be useful for your application.

    Best regards

    Peter Schutte

  • How the packet data / * ($HOME /) files by using the bar - descriptor.xml

    Hi, using sdk native c / c ++ with playbook Simulator 1.0

    I want to distribute with my application some data files that likely should fall under the ' data /' ($HOME?)

    folder.

    (I've written / will update them sometimes, so app/native/does not appropriate I suppose.)

    in the bar - descriptor.xml, I tried adding them as an 'active '.

    who drops their bottom right in app/native / *.

    so I change the XML .bar to try to get them grounded in data.

    Here's what I found:

    by train: data/filename landed the file in app/native/data/filename

    try:... /... / Data/filename received the error

    by train: / data/filename received the error (hoping to slash leader was compared to the sandbox)

    I even on a lark tried: $HOME/filename, who literally created file app/native / $HOME!

    so he tried a ${HOME} with the curlies. I got an error saying unable to resolve the path variable.

    How can I get the data files in the folder/data ($HOME) using the .bar packaging?

    You cannot package the file into the data, you copy your files at startup, if they don't not exist your app/native/data for example

Maybe you are looking for

  • Cookies from Firefox make my computer freezes &amp; must be reseeded

    Firefox no longer works on my machine (Windows 8.1), he opened in tabs I used last, but there is no picture displayed and the computer froze, making it necessary to restart by pressing the button. Uninstalling and reinstalling didn't make any differe

  • Hoe kan ik een emailadres bijhorend Password wissen ITU een popdownmenu en

    Een vriend zijn opgevraagd gmail via mijn computer laptop has. Has natuurlijk iets verkeerd gedan nude en Hij staat zijn inlognaam met bijpassend Password bestendig in mijn popdownmenu als ik opstart. IK kan wel onder mijn eigen naam maar ook naar zi

  • How long does take to repair a laptop?

    Hello On 2 may, more than five weeks, I brought my laptop in the store where I bought it because there was something wrong with the fan. The man told me that it was probably covered by the mandate. He suggested we would better send the laptop to Tosh

  • application of touch screen

    1207TX HP Envy D5F64P M6 have touch screen ability?

  • remove the string in double paragraph

    Hi, I wandered if someone had the best way to search for a string and delete the repeated subsections. For example, the input string may look like: T2, T2, T3, T6 but I want to delete one of the T2 repeated, so the output would be: T2, T3, T6 Note th