How to edit xml using AS3

I want to edit xml file on run time dynamically using AS3
Plzzzzzzzz if it possible send the tutorials links or sample script.

Flash player 10 has support for accessing local system file. This can be done using the FileReference class. You can browse a loca file, rad it and then save it back. But at the time of saving, the user is prompted to choose a location for saving the file.
Else you can use some server side technology with your app to read and write files.

Similar Messages

  • How to edit xml using jdom

    hi
    how to read and edit xml file using jdom, i tried using
    javax.xml.transform.*; // JAXP
    javax.xml.transform.dom.DOMSource; //
    i can read xml file . but iam not able to edit the xml file.
    how to achive this

    1. Select nodes to be modified with the JDom XPath class selectSingleNode and selectNodes methods.
    SAXBuilder saxBuilder=new SAXBuilder("org.apache.xerces.parsers.SAXParser");
    org.jdom.Document jdomDocument=saxBuilder.build(new File("c:/input.xml"));
    org.jdom.Element node= (org.jdom.Element)(XPath.selectSingleNode(jdomDocument,"/root/node"));
    2. Modify the node values with the Element class setter methods.
    3. Output document with the XMLOutputer class.

  • How to edit xml file particular value. and how to send xml file over ip address 192.168.2.10 using ftp

    how to edit xml file particular value. and how to send xml file over ip address 192.168.2.10 device using ftp through Ethernet

    Hello
    For using FTP function in LabVIEW, I recommend you to check this document: FTP Basics
    Also, take a look at FTP Browser.vi, which is available at the Example Finder.
    To edit a XML file, try to use VIs in XML palette. Maybe Write to XML.vi helps you.
    Post your current VI if possible.
    Regards
    Mondoni

  • How to validate xml using xsd

    Hi All
    please tell me how to validate xml using xsd
    regards

    Try using this link:
    = http://www.google.nl/search?q=XML+validate+oracle for instance or
    = use the search button on this forum and / or
    = read the FAQ on this (XML DB FAQ
    Thanks Eddie et all, for educating me via http://awads.net/wp/2006/11/14/barts-punishment-for-asking-dumb-questions (don't mind the URL , the info there is really useful)
    The following link on this site is just brilliant: http://www.albinoblacksheep.com/flash/posting.php
    Grz
    Marco
    Message was edited by:
    mgralike

  • How to make OLAPDATAGRID use AS3

    How to make OLAPDATAGRID use AS3? I make like this and have a
    problem lease halp me type simple example!
    [Attach Code]
    package My
    import mx.collections.ArrayCollection;
    import mx.collections.IList;
    import mx.controls.Alert;
    import mx.controls.OLAPDataGrid;
    import mx.olap.IOLAPCube;
    import mx.olap.IOLAPDimension;
    import mx.olap.IOLAPQuery;
    import mx.olap.IOLAPQueryAxis;
    import mx.olap.OLAPAttribute;
    import mx.olap.OLAPCube;
    import mx.olap.OLAPDimension;
    import mx.olap.OLAPHierarchy;
    import mx.olap.OLAPLevel;
    import mx.olap.OLAPMeasure;
    import mx.olap.OLAPQuery;
    import mx.olap.OLAPResult;
    import mx.olap.OLAPSet;
    import mx.rpc.AsyncResponder;
    import mx.rpc.AsyncToken;
    public class OlapDGCreator
    [Bindable]
    private var flatData:ArrayCollection = new ArrayCollection(
    {otd:"div1",pos:"programmer",year:2007,quarter:"q1",zp:20000},
    {otd:"div1",pos:"manager",year:2007,quarter:"q1",zp:15000},
    {otd:"div2",pos:"programmer",year:2007,quarter:"q1",zp:25000},
    {otd:"div2",pos:"manager",year:2007,quarter:"q1",zp:23000},
    {otd:"div1",pos:"programmer",year:2007,quarter:"q2",zp:21000},
    {otd:"div1",pos:"manager",year:2007,quarter:"q2",zp:16000},
    {otd:"div2",pos:"programmer",year:2007,quarter:"q2",zp:27000},
    {otd:"div2",pos:"manager",year:2007,quarter:"q2",zp:24000},
    public var str:String = "";
    public var ODG:OLAPDataGrid = new OLAPDataGrid();
    public var MyCube:OLAPCube = new OLAPCube("otchet");
    public function OlapDGCreator()
    MyCube.dataProvider=flatData;
    var m:OLAPMeasure = new OLAPMeasure("ZP");
    m.aggregator="SUM";
    m.dataField="zp";
    var a:IList = new ArrayCollection();
    a.addItem(m);
    var dimDateTime:OLAPDimension = new
    OLAPDimension("DateTime","DateTime");
    dimDateTime.cube=MyCube;
    dimDateTime.name="DateTime";
    var hierDataTime:OLAPHierarchy = new
    OLAPHierarchy("hierDataTime","displayHierDataTime");
    var l1:OLAPLevel = new OLAPLevel("Year","Year")
    var l2:OLAPLevel = new OLAPLevel("Quarter","Quarter")
    hierDataTime.levels.addItem(l1);
    hierDataTime.levels.addItem(l2);
    var att1:OLAPAttribute = new OLAPAttribute("Year","Year")
    att1.dataField="year";
    att1.name="Year";
    var att2:OLAPAttribute = new
    OLAPAttribute("Quarter","quarter")
    att2.dataField="quarter";
    att2.name="Quarter";
    dimDateTime.attributes.addItem(att1)
    dimDateTime.attributes.addItem(att2)
    dimDateTime.hierarchies.addItem(hierDataTime);
    var dimDivDim:OLAPDimension = new
    OLAPDimension("DivDim","DivDim");
    dimDivDim.cube=MyCube;
    dimDivDim.name="DivDim";
    var hierDivDim:OLAPHierarchy = new
    OLAPHierarchy("hierDivDim","displayHierDivDim");
    var dd_l1:OLAPLevel = new OLAPLevel("Otd","Otd")
    var dd_l2:OLAPLevel = new OLAPLevel("Pos","Pos")
    hierDivDim.levels.addItem(dd_l1);
    hierDivDim.levels.addItem(dd_l2);
    var dd_att1:OLAPAttribute = new OLAPAttribute("Otd","Otd")
    dd_att1.dataField="otd";
    dd_att1.dimension=dimDivDim;
    var dd_att2:OLAPAttribute = new OLAPAttribute("Pos","Pos")
    dd_att2.dataField="pos";
    dd_att2.dimension=dimDivDim;
    dimDivDim.attributes.addItem(dd_att1);
    dimDivDim.attributes.addItem(dd_att2);
    dimDivDim.hierarchies.addItem(hierDivDim);
    MyCube.dimensions.addItem(dimDateTime);
    MyCube.dimensions.addItem(dimDivDim);
    MyCube.measures = a
    MyCube.refresh();
    //MyCube.measures.addEventListener("www",test);
    //MyCube.addEventListener(CubeEvent.CUBE_COMPLETE,runQuery)
    runQuery();
    //запустили
    выражение
    // Create the OLAP query.
    private function getQuery(cube:IOLAPCube):IOLAPQuery {
    // Create an instance of OLAPQuery to represent the query.
    var query:OLAPQuery = new OLAPQuery;
    // Get the row axis from the query instance.
    var rowQueryAxis:IOLAPQueryAxis =
    query.getAxis(OLAPQuery.ROW_AXIS);
    // Create an OLAPSet instance to configure the axis.
    var otdSet:OLAPSet = new OLAPSet;
    // Add the Product to the row to aggregate data
    // by the Product dimension.
    var tmp:IOLAPDimension = cube.findDimension("DivDim");
    var tmp2:OLAPDimension = cube.dimensions[0];
    otdSet.addElements(OLAPAttribute(OLAPDimension(cube.dimensions[1]).attributes[0]).childre n);//zah
    otdSet.addElements(cube.findDimension("DivDim").findAttribute("Otd").children);
    // Add the OLAPSet instance to the axis.
    var posSet:OLAPSet = new OLAPSet;
    // Add the Product to the row to aggregate data
    // by the Product dimension.
    posSet.addElements(OLAPAttribute(OLAPDimension(cube.dimensions[1]).attributes[1]).childre n);//zah
    posSet.addElements(cube.findDimension("DivDim").findAttribute("Pos").children);
    // Add the OLAPSet instance to the axis.
    rowQueryAxis.addSet(otdSet.crossJoin(posSet));
    // Get the column axis from the query instance, and
    configure it
    // to aggregate the columns by the Quarter dimension.
    var colQueryAxis:IOLAPQueryAxis =
    query.getAxis(OLAPQuery.COLUMN_AXIS);
    var yearSet:OLAPSet= new OLAPSet;
    yearSet.addElements(OLAPAttribute(OLAPDimension(cube.dimensions[0]).attributes[0]).childr en);//zah
    yearSet.addElements(cube.findDimension("DateTime").findAttribute("Year").children);
    var quarterSet:OLAPSet= new OLAPSet;
    quarterSet.addElements(OLAPAttribute(OLAPDimension(cube.dimensions[0]).attributes[1]).chi ldren);//zah
    //quarterSet.addElements(cube.findDimension("DateTime").findAttribute("Quarter").children );
    colQueryAxis.addSet(yearSet.crossJoin(quarterSet));
    return query;
    // Event handler to execute the OLAP query
    // after the cube completes initialization.
    // private function runQuery(event:CubeEvent):void {
    private function runQuery():void {
    // Get cube.
    //var cube:IOLAPCube = IOLAPCube(event.currentTarget);
    var cube:IOLAPCube = IOLAPCube(this.MyCube);
    // Create a query instance.
    var query:IOLAPQuery = getQuery(cube);
    // Execute the query.
    var token:AsyncToken = cube.execute(query);
    // Setup handlers for the query results.
    token.addResponder(new AsyncResponder(showResult,
    showFault));
    // Handle a query fault.
    private function showFault(result:Object, token:Object):void
    Alert.show("Error in query.");
    // Handle a successful query by passing the query results to
    // the OLAPDataGrid control..
    private function showResult(result:Object,
    token:Object):void {
    if (!result) {
    Alert.show("No results from query.");
    return;
    ODG.dataProvider= result as OLAPResult;
    [/Attach Code]

    Here is the fixed code. I would have loved to re-organize the
    code but left it as is so that you can diff the files and make a
    note of the differences.
    package
    import mx.collections.ArrayCollection;
    import mx.controls.Alert;
    import mx.controls.OLAPDataGrid;
    import mx.events.CubeEvent;
    import mx.olap.IOLAPCube;
    import mx.olap.IOLAPDimension;
    import mx.olap.IOLAPQuery;
    import mx.olap.IOLAPQueryAxis;
    import mx.olap.OLAPAttribute;
    import mx.olap.OLAPCube;
    import mx.olap.OLAPDimension;
    import mx.olap.OLAPHierarchy;
    import mx.olap.OLAPLevel;
    import mx.olap.OLAPMeasure;
    import mx.olap.OLAPQuery;
    import mx.olap.OLAPResult;
    import mx.olap.OLAPSet;
    import mx.rpc.AsyncResponder;
    import mx.rpc.AsyncToken;
    public class OlapDGCreator
    [Bindable]
    private var flatData:ArrayCollection = new ArrayCollection(
    {otd:"div1",pos:"programmer",year:2007,quarter:"q1",zp:20000},
    {otd:"div1",pos:"manager",year:2007,quarter:"q1",zp:15000},
    {otd:"div2",pos:"programmer",year:2007,quarter:"q1",zp:25000},
    {otd:"div2",pos:"manager",year:2007,quarter:"q1",zp:23000},
    {otd:"div1",pos:"programmer",year:2007,quarter:"q2",zp:21000},
    {otd:"div1",pos:"manager",year:2007,quarter:"q2",zp:16000},
    {otd:"div2",pos:"programmer",year:2007,quarter:"q2",zp:27000},
    {otd:"div2",pos:"manager",year:2007,quarter:"q2",zp:24000},
    public var str:String = "";
    public var ODG:OLAPDataGrid = new OLAPDataGrid();
    public var MyCube:OLAPCube = new OLAPCube("otchet");
    public function OlapDGCreator()
    MyCube.dataProvider=flatData;
    var m:OLAPMeasure = new OLAPMeasure("ZP");
    m.aggregator="SUM";
    m.dataField="zp";
    //var a:IList = new ArrayCollection();
    //a.addItem(m);
    var dimDateTime:OLAPDimension = new
    OLAPDimension("DateTime","DateTime");
    //dimDateTime.cube=MyCube;
    //dimDateTime.name="DateTime";
    var hierDataTime:OLAPHierarchy = new
    OLAPHierarchy("hierDataTime","displayHierDataTime");
    var l1:OLAPLevel = new OLAPLevel("Year","Year")
    l1.attributeName = "Year";
    var l2:OLAPLevel = new OLAPLevel("Quarter","Quarter")
    l2.attributeName = "Quarter";
    //hierDataTime.levels.addItem(l1);
    //hierDataTime.levels.addItem(l2);
    hierDataTime.levels = new ArrayCollection([l1, l2]);
    var att1:OLAPAttribute = new OLAPAttribute("Year","Year")
    att1.dataField="year";
    //att1.name="Year";
    var att2:OLAPAttribute = new
    OLAPAttribute("Quarter","quarter")
    att2.dataField="quarter";
    //att2.name="Quarter";
    //dimDateTime.attributes.addItem(att1)
    //dimDateTime.attributes.addItem(att2)
    dimDateTime.attributes = new ArrayCollection([att1, att2]);
    //dimDateTime.hierarchies.addItem(hierDataTime);
    dimDateTime.hierarchies = new
    ArrayCollection([hierDataTime]);
    var dimDivDim:OLAPDimension = new
    OLAPDimension("DivDim","DivDim");
    //dimDivDim.cube=MyCube;
    //dimDivDim.name="DivDim";
    var hierDivDim:OLAPHierarchy = new
    OLAPHierarchy("hierDivDim","displayHierDivDim");
    var dd_l1:OLAPLevel = new OLAPLevel("Otd","Otd")
    dd_l1.attributeName = "Otd";
    var dd_l2:OLAPLevel = new OLAPLevel("Pos","Pos")
    dd_l2.attributeName = "Pos";
    //hierDivDim.levels.addItem(dd_l1);
    //hierDivDim.levels.addItem(dd_l2);
    hierDivDim.levels = new ArrayCollection([dd_l1, dd_l2]);
    var dd_att1:OLAPAttribute = new OLAPAttribute("Otd","Otd")
    dd_att1.dataField="otd";
    //dd_att1.dimension=dimDivDim;
    var dd_att2:OLAPAttribute = new OLAPAttribute("Pos","Pos")
    dd_att2.dataField="pos";
    //dd_att2.dimension=dimDivDim;
    //dimDivDim.attributes.addItem(dd_att1);
    //dimDivDim.attributes.addItem(dd_att2);
    //dimDivDim.hierarchies.addItem(hierDivDim);
    dimDivDim.attributes = new ArrayCollection([dd_att1,
    dd_att2]);
    dimDivDim.hierarchies = new ArrayCollection([hierDivDim]);
    //MyCube.dimensions.addItem(dimDateTime);
    //MyCube.dimensions.addItem(dimDivDim);
    //MyCube.measures = a
    MyCube.elements = [dimDateTime, dimDivDim, m];
    MyCube.refresh();
    //MyCube.measures.addEventListener("www",test);
    MyCube.addEventListener(CubeEvent.CUBE_COMPLETE,runQuery)
    // Create the OLAP query.
    private function getQuery(cube:IOLAPCube):IOLAPQuery {
    // Create an instance of OLAPQuery to represent the query.
    var query:OLAPQuery = new OLAPQuery;
    // Get the row axis from the query instance.
    var rowQueryAxis:IOLAPQueryAxis =
    query.getAxis(OLAPQuery.ROW_AXIS);
    // Create an OLAPSet instance to configure the axis.
    var otdSet:OLAPSet = new OLAPSet;
    // Add the Product to the row to aggregate data
    // by the Product dimension.
    var tmp:IOLAPDimension = cube.findDimension("DivDim");
    var tmp2:OLAPDimension = cube.dimensions[0];
    otdSet.addElements(OLAPAttribute(OLAPDimension(cube.dimensions[1]).attributes[0]).children );//zah
    otdSet.addElements(cube.findDimension("DivDim").findAttribute("Otd").children);
    // Add the OLAPSet instance to the axis.
    var posSet:OLAPSet = new OLAPSet;
    // Add the Product to the row to aggregate data
    // by the Product dimension.
    posSet.addElements(OLAPAttribute(OLAPDimension(cube.dimensions[1]).attributes[1]).children );//zah
    posSet.addElements(cube.findDimension("DivDim").findAttribute("Pos").children);
    // Add the OLAPSet instance to the axis.
    rowQueryAxis.addSet(otdSet.crossJoin(posSet));
    // Get the column axis from the query instance, and configure
    it
    // to aggregate the columns by the Quarter dimension.
    var colQueryAxis:IOLAPQueryAxis =
    query.getAxis(OLAPQuery.COLUMN_AXIS);
    var yearSet:OLAPSet= new OLAPSet;
    yearSet.addElements(OLAPAttribute(OLAPDimension(cube.dimensions[0]).attributes[0]).childre n);//zah
    yearSet.addElements(cube.findDimension("DateTime").findAttribute("Year").children);
    var quarterSet:OLAPSet= new OLAPSet;
    quarterSet.addElements(OLAPAttribute(OLAPDimension(cube.dimensions[0]).attributes[1]).chil dren);//zah
    //quarterSet.addElements(cube.findDimension("DateTime").findAttribute("Quarter").children) ;
    colQueryAxis.addSet(yearSet.crossJoin(quarterSet));
    return query;
    // Event handler to execute the OLAP query
    // after the cube completes initialization.
    // private function runQuery(event:CubeEvent):void {
    private function runQuery(event:Event):void {
    // Get cube.
    //var cube:IOLAPCube = IOLAPCube(event.currentTarget);
    var cube:IOLAPCube = IOLAPCube(this.MyCube);
    // Create a query instance.
    var query:IOLAPQuery = getQuery(cube);
    // Execute the query.
    var token:AsyncToken = cube.execute(query);
    // Setup handlers for the query results.
    token.addResponder(new AsyncResponder(showResult,
    showFault));
    // Handle a query fault.
    private function showFault(result:Object, token:Object):void
    Alert.show("Error in query.");
    // Handle a successful query by passing the query results to
    // the OLAPDataGrid control..
    private function showResult(result:Object, token:Object):void
    if (!result) {
    Alert.show("No results from query.");
    return;
    ODG.dataProvider= result as OLAPResult;

  • How to edit xml link?

    First a few words about my context:
    I received a layout made on a CS3 version of InDesign. Now I am trying to create a procedure to automate the production of several pdf based on this layout. Manually the process would be to open the layout; edit the xml link with each xml source and create a corresponding pdf...
    First issue:
    In CS4 when I want to manually edit the xml link, the opened dialog prevent me (xml files are in gray) to select xml files, is it a well-known issue? How can I avoid it?
    Second question:
    How to edit the xml link from script?
    Last question - applescript question - :
    How to skip application dialogs? Like "This document miss some links, would you continue?"
    If you'd be able to help me, thanks in advance!

    Dear Loic_aigon
       Many thanks!
    But I used what you said!.
    But Still I'm facing the same problem [ not find : "image"]
    Here the below tag I used..
    <Figure id="f0020"><label>Figure 2 </label><caption>Dummy Figure </caption>
    <image href="C:/Program %20Files/VUG/clouds.jpg"></image></Figure>
    Program :
    //============== Start =====================//
    #include "E:/HariharaSudhan/XMDOM_TEST/xml_for_script-3.1/jsXMLParser/xmldom.js";
    var myFile = File("E:/HariharaSudhan/XMDOM_TEST/xml/test.xml");
    myFile.open("r");
    var myXMLString = String(myFile.read());
    var objDom = new XMLDoc(myXMLString, undefined);
    var domTree = objDom.docNode;
    $.writeln(domTree);
    var myImage = domTree.getElements("image");
    var myDoc = app.open(File("E:/HariharaSudhan/XMDOM_TEST/Indd/test.indd"), true);
    $.writeln(myImage);
    for(var i=0; i<myImage.length; i++)
    $.writeln( myImage[i].name);
    myImage[i].getAttribute("href").replace('file:///','');
      var myPage = doc.pages[0].duplicate(LocationOptions.AT_END);
      var myFrame = myPage.pageItems.item("image");
      myFrame.place(File(myImage[i].getAttribute("href").replace('file:///','')));
      app.pdfExportPreferences.pageRange = myPage.name;
      app.pdfExportPreferences.viewPDF  = false;
      myDoc.exportFile(ExportFormat.pdfType, File("E:/HariharaSudhan/XMDOM_TEST/PDF/" +(i+ 1)+".pdf"), undefined, undefined, undefined, undefined);
    myDoc.close(SaveOptions.NO);
    //===================== End ============================//
    So please kindly see the attached xml file, and please send me the solutions.
    Please this is my humble request.
    Thanks & Regards
    T.R.Harihara SudhaN

  • How to edit XML parsed data and save on iPhone app

    Hi,
    How to edit and XML retrieved data that is displayed on an iPhone app and save again in the same XML file using iPhone SDK.
    In other words I want to change the XML file data or edit and save.
    Thnx in advance.
    Regards
    Amit

    Hello amit,
    No, not at all. Surely you will parse your XML file using the NSXMLParser class. OK! i think i get it now, do you wants to change/modify the value of any tag in the XML file? For that you will be required to parse your XML file using NSXMLParser class, and fill out some data structure (according to the the XML format) do some changes into your data structure, and then write your XML to the file (according to the edited data structure) using the method i told u earlier. This is what my preferred method is, and i am pretty much sure that it is not a bad way to do this at all.
    Hope this clarifies some of your queries.
    Best regards,
    Obaid

  • How to send XML using UTL_HTTP

    I am trying to workout how to send XML data to a webserver using UTL_HTTP but am not getting any reply
    I need to submit the following XML document to a server "http://api.fastsms.co.uk/api/xmlapi.php"  Their instructions are "The XML Document should be posted unencoded, with a UTF-8 character set as parameter 'xml'"
    If I submit the following XML on their test form
    <?xml version="1.0"?>
    <apirequest version="1">
    <user>
      <username>**USER**</username>
      <password>**PASSWORD**</password>
    </user>
    <application>
      <name>Example Application</name>
      <version>1.0</version>
    </application>
    <inboundcheck lastid="10711399"/>
    </apirequest>
    I get an XML response back with the messages in my inbox. 
    This is the code I am trying to use to accomplish the same from PL/SQL : I know a response is coming back as there is header information - just no content.  What am I doing wrong ?
      l_xml VARCHAR2(5000);
      req utl_http.req;
      resp utl_http.resp;
      header_name VARCHAR2(256); -- Response header name
      header_value VARCHAR2(1024); -- Response header value
      response_text VARCHAR2(4000); -- Response body
      l_url VARCHAR2(100);
    BEGIN
      l_xml := 'xml=<?xml version="1.0"?>';
      l_xml := '<apirequest version="1">';
      l_xml := '<user>';
      l_xml := '<username>**USER**</username>';
      l_xml := '<password>**PASSWORD**</password>';
      l_xml := '</user>';
      l_xml := '<application>';
      l_xml := '<name>Example Application</name>';
      l_xml := '<version>1.0</version>';
      l_xml := '</application>';
      l_xml := '<inboundcheck lastid="10711399"/>';
      l_xml := '</apirequest>';
      -- Open HTTP connection
      l_url := 'http://api.fastsms.co.uk/api/xmlapi.php';
      req := utl_http.begin_request(l_url,'POST',utl_http.HTTP_VERSION_1_1);
      -- Set headers for type and length
      utl_http.set_header(req,'Content-Type','application/x-www-form-urlencoded');
      utl_http.set_header(req,'Content-Length',to_char(length(l_xml)));
      -- Write parameter
      utl_http.write_text(req,l_xml);
      -- Read response file
      resp := utl_http.get_response(req);
      -- Print out the response headers
      FOR i IN 1 .. utl_http.get_header_count(resp) LOOP
        utl_http.get_header(resp,i,header_name,header_value);
        logging_pkg.info(header_name || ': ' || header_value);
      END LOOP;
      -- Print out the response body
      BEGIN
        LOOP
          utl_http.read_text(resp,response_text);
          logging_pkg.info(response_text);
        END LOOP;
      EXCEPTION
        WHEN utl_http.end_of_body THEN
          logging_pkg.info('End of body');
      END;
      -- close http connection
      utl_http.end_response(resp);
      EXCEPTION
        WHEN utl_http.end_of_body THEN
          utl_http.end_response(resp);
    END;
    Cheers,
    Brent

    Hi Billy
    Yikes - how embarassing !  Thanks for pointing out my beginners mistake there.  I've fixed my code - and also implemented the substitutions of parameters like you suggested - I like that approach.
    Unfortunately the end result is no better - the line
    utl_http.read_text(resp,response_text);
    Still returns nothing back
    The headers that are coming back are
    Date: Thu, 04 Jul 2013 08:31:56 GMT
    Server: Apache/2.2.16 (Ubuntu)
    X-Powered-By: PHP/5.3.3-1ubuntu9.3
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Vary: Accept-Encoding
    Content-Length: 0
    Content-Type: text/html; charset=UTF-8
    Connection: close
    I guess I will need to try chasing it with the fastsms vendor so see if they can check my incoming request and see if there are any glaring problems. I know the xml is correct as I am now logging the xml string just before I send it and when I take that string and put it in their test form it works perfectly - something else in the puzzle is missing. I've had no experience using utl_http before - perhaps it's no possible to read the xml repsonse using this ?
    Anyway, thanks for your help Billy.
    ps - How do you paste your code into your message to get that formatting ?
    Cheers,
    Brent

  • How to edit video using iMovie?

    Hi,
    I am new to iMovie. I am not familiar with its key tools. Can any one please tell me how to edit a video using the software? I need to put a video on Youtube displaying features of my website http://www.fundoofun.com
    Thanks in advance.
    K V Gautam

    Move the video between iPads using Dropbox or an App like Photo Transfer.

  • How to edit registry using recovery console or dos

    Hello everybody!
    Due to some reason (virus) the value of  - "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon - Shell " was changed so I repaired it with Explorer.exe. But  due to some spelling mistake now I can log in in Win Xp. When the user log in screen appears and I choose the account its automatically logOff and return to the User Log in screen.
    Now I have to repair the spelling mistake in registry key.
    Please inform How can I do this. I can't log in so I can't use "Regedit". Can it is possible to edit the registry using recovery console?
    Thanks & regards
    nitin

    Step 1
    Type "cd %systemroot%/system32/" into the command prompt to go to the folder that contains the Registry Editor.
    Step 2
    Type "reg" into the command prompt to display a list of parameters and instructions on how to edit the system registry.
    Step 3
    Type "reg [parameter] /?", replacing "[parameter]" with one of the listed parameters, into the command prompt to list all available functions that can be used with that parameter.
    Step 4
    Type "reg [parameter] [function]" into the command line, but replace "[parameter]" with one of the listed parameters (query, add, delete, copy, etc.) and "[function]" with a function listed above, along with any additional options
    for each function. For example, to delete a registry key, type "reg delete [rootkey]\[keyname]", replacing the "[rootkey]\[keyname]" text with the location of the registry key.
    Step 5
    Save a registry key by typing "reg save [rootkey]\[keyname] [filename].hiv", where the "[rootkey]" and "[keyname]" text are the location and name of the registry file and "[filename]" is the name of the file to which
    you are saving the key.
    Step 6
    Restore a registry key by typing "reg restore [rootkey]\[keyname] [filename].hiv", where the "[rootkey]" and "[keyname]" text are the location and key name that you want to restore and "[filename]" is the name of the
    file containing the saved key.
    Step 7
    Import a "REG" file by typing "reg import [filename].reg". To export a registry key to a "REG" file, type "reg export [rootkey]\[keyname] [filename].hiv", where the "[rootkey]" and "[keyname]" text
    are the location and key name that you want to export and "[filename]" is the name of the "REG" file you are exporting.

  • How to generate xml using "Data Template"

    Hi,
    Can any one please tell me the steps to create xml using "Data Template".
    As per the user guide the execution method for "data Template" is "Java Concurrent Program" and the Executable mentiones is "XDODTEXE".
    But there is no information about the "execution file name" and "execution path name" which is mandatory.
    Thanks and Regards,
    Sandhya

    Hi Sandhya,
    To put a Data Template into use, you don't need to define any new executables. XDODTEXE executable is already registered in the system, as it ships with the application. The Data Template is not an executable as such, but a collection of instructions for what queries to perform and what should the resulting XML look like. XDODTEXE knows how to interpret those instructions, and produce the XML output.
    (And if you add a layout template, handle that too.)
    You do need to do the following:
    1) Create a new Data Definition (XML Publisher Administrator > Data Definitions)
    2) Upload your Data Template (remember the Code for the next step)
    3) Create a Concurrent Program that is linked to the Data Definition (Short Name = Code) (System Administrator > Program > Define)
    4) Add your Concurrent Program to a Request Group (System Administrator > Security > Responsibility > Request)
    I recommend you take a look at the XML Publisher Administration and Developer's Guide, you will find more information there.
    (http://download-west.oracle.com/docs/cd/B40089_02/current/acrobat/120xdoig.pdf)
    Best Regards & Happy New Year 2008,
    Matilda Smeds

  • How to validate XML using java_xml_pack-summer-02?

    In jaxp1.1, we validate the xml file in this way:
    c:\java -jar Validator.jar myBookStore.xml
    However, in java_xml_pack-summer-02, which is latest version of jaxp, the Validator.jar is not available. So, how to validate xml file?
    Pls help.

    develop your own validator... here is a quick and dirty one, which spits exceptions when error are met:
    import java.io.*;
    import javax.xml.parsers.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.DefaultHandler;
    public class Validator
      public static void main(String[] args) throws Exception {
        SAXParserFactory spf = SAXParserFactory.newInstance();
        spf.setValidating(true);
        spf.setNamespaceAware(true);
        SAXParser sp = spf.newSAXParser();
        sp.parse(new File(args[0]), new DefaultHandler());
    }

  • How to edit data using a LOV list AND textfield for one Field

    I am trying to edit the templated edit from HTMLDB template when I create a new table. I implemented most of the fields with LOV list like yes/no, joe/bob/john etc. But some fields as many probably have seen have a LOV called "Other" where a person types a different value than the ones available. Can someone tell me how I can accomplish that? Do I need to insert "Other" into LOV and have it be set as the value in the textfield? I am not sure how i can create both LOV list and textfield per category/field i.e. Name.
    Thanks

    Again, I urge you to use HTML DB nomenclature to describe what you've done. For example: "I ran the Form on a Table wizard to create a form" Rather than using the word "template" for everything you describe. "Template" has a specific meaning in HTML DB and it is not what you are referring to.
    You really should invest the time required to accurately phrase your problem. Just like answering questions on this forum requires time, so does formulating your question. It is time well spent and it is effort on your part that the experts on this forum deserve. If you don't put in this effort and instead just post a stream of consciousness, that means the readers of this forum will gloss over your question and ignore it. As a result, you have to ask the question again...and again.
    Having said that, if I understand your question correctly, you should use a popup LOV item. This will allow the user to select from a list but will also allow typing of a non existent option into a text field.
    Sergio

  • How to parse xml using DocumentBuilder ?

    I am trying to parse this xml snippet:
    <root>
    <data a="0.0" b="1.0"/>
    <data a="0.1" b="2.0"/>
    <data a="0.2" b="3.0"/>
    <data a="0.3" b="4.0"/>
    <data a="0.4" b="5.0"/>
    <data a="0.5" b="6.0"/>
    </root>
    using the following:
        String test = getDummyXmlSnippet()
        StringReader sr = new StringReader(test);
        input = new InputSource(sr);
        Document document = null;
        try {
          DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
          DocumentBuilder builder = factory.newDocumentBuilder();
          document = builder.parse(input);
          NodeList nodes = document.getChildNodes();
          // this only prints 1
          System.out.println(nodes.getLength());
          Node nn = nodes.item(0);
          // this prints this first root node name (root)
          System.out.println(nn.getNodeName());
          // Cannot get the remaning nodes....!
          NodeList nnt = nn.getChildNodes();
          Node n0 = nnt.item(0);
          System.out.println(n0.getNodeValue());  // just prints #text
          System.out.println(n0.getNodeName()); // just prints #text
          // THis prints 13
          System.out.println(nn.getChildNodes().getLength());
          // this will only iterate once!
          NodeList children = document.getChildNodes();
          for (int i=0;i<children.getLength();i++) {
            Node node = children.item(i);
            if (node.getNodeType()==Node.ELEMENT_NODE) {
              System.out.println("bob = " + node.getNodeName());
        } catch(Exception e){
          e.printStackTrace();
        }I can only get the first root node printed. How do I get the child (data nodes) elements out?

    What do you mean by the "first" root node? An XML document only has one root node, and your XML document is no exception.
    As for the 13 child nodes of the root, you could have written a program which iterated over them and displayed them. That would have clarified your understanding of the document. But instead you wrote a program which just displayed the first of them, then iterated over the children of the document (which has the root as its only child) instead of iterating over the children of the root element.
    You wouldn't be the first person to not realize that whitespace text nodes are nodes just like all the others. Or that the document and the root node are different things.

  • Help: How to Validate XML using SAXParser and return the entire error list

    Hi,
    I have a problem, I'm trying to validate a xml document against the DTD. Here Im using SAXParser and having the ErrorHandler object passed when setting the error Handler, like parser.setErrorHandler(errorHandlerObj).
    I need an output like where the entire XML document is read and all the errors have to be reported with the line number.
    like example:
    <b>Line 6: <promp>
    [Error]:Element type "promp" must be declared.
    Line 8: </prompt>
    [Fatal Error]:The end-tag for element type "promp" must end with a '>' delimiter.
    who can i achieve this.</b>
    what happens with the present code is that it throws the first error it encountered and comes out.
    how can i solve this problem

    You can try to set the following feature to 'true' for your SAXParser:
    http://apache.org/xml/features/continue-after-fatal-error
    At least Xerces supports this feature.

Maybe you are looking for

  • Error while copying app

    When I copy a newer version of an application overan older version that is not running, I get the following error message: The operation can't be completed because the item "Info.plist" is in use. Any suggestions to get around this?

  • HP PSC 1350 All-In-One won't install on Macbook Pro, PLEASE HELP!! :(

    Hi all I know this has been covered before, but I've done SO many Google searches I just can't think of any other keyword combinations so I'm hoping someone can advise. I'm running the latest version of OS X, and when I first plugged in the printer v

  • AT&T cut off my THunderbird account on January 10, so how do I get it going again?

    Apparently I need to change something in Account Settings. AT&T sent me an email some time ago, but I saw no way to set things as they recommended. Thunderbird does not have a way to set the port number for outgoing mail, for instance. They said to u

  • Error message (!) on all my podcasts

    Hi, as of this evening, I'm not able to download any of my podcasts. Here's the error message I get: "There was a problem downloading...You do not have enough access privileges for this operation. Please check that the URL is correct and the connecti

  • Rc.d script for Source Dedicated Server (srcds)

    I'm using ArchLinux to power a game and web server and wanted an rc.d script for it.  I found a few scripts but none of them seemed as simple as the the example in the wiki (lots of ps/grep) so I wrote my own: srcds-rc.d.  It does start/stop and also