Problems by analyzing a string XML using DOM.

Hello.

I have a strign I want to analyze using Dom I did this:

QString str = "OK";
str = str + "http://190.15.180.7/PmovilGerencialSoftech/ServicioPMovil.asmx";
str = str + "";
str = str + "Linea Uno";
str = str + "Linea Dos";
str = str + "";
str = str + "";
LicenciaResponse lc(str);

And the LicenciaResponse constructor is:

LicenciaResponse::LicenciaResponse(const QString& xmlString)
{
    mStatus = "";
    mServer = "";
    mNotificacion = "";

 QDomDocument doc;
 QString errorStr;
 int errorLine;
 int errorColumn;
 if (doc.setContent(xmlString, false, &errorStr, &errorLine, &errorColumn))
     {
    mStatus = QString("Error en linea: %1").arg(errorLine);
    mStatus = mStatus % QString(", Columna: %1").arg(errorColumn);
    mStatus = mStatus % "Descripcion: " % errorStr;
    return;
   }
     ...

I get the message: "error en linea:-1181730538, Columna:-1173470004, description:", so that this happened in»»

setContent call...

Concerning

If the statement is listening to the true , what happens when the::setContent() QDomDocument parses successfully your string. Because you get this console output, the analysis has been a success and there is no error. If you want to listen to a failure (QDomDocument::setContent() returning false), you will need to change the line to this:

if (!doc.setContent(xmlString, false, &errorStr, &errorLine, &errorColumn))

In that adding an exclamation point in front of the doc, it reverses the result of the statement so true becomes false and vice versa.

Tags: BlackBerry Developers

Similar Questions

  • Writing xml using DOM.

    Hi, I use dom to write the XML to a file. Here is my code.

    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance ();
    DocumentBuilder db = dbf.newDocumentBuilder ();
    URL url = Main.class.getResource ("murali.xml");
    Document doc = db.parse (Main.class.getResourceAsStream ("murali.xml"));
    Root = doc.getDocumentElement () of the element;
    NodeList empList = root.getElementsByTagName ("employee");
    EMPL = (Element) empList.item (0) of the element.
    System.out.println (EMPL.getNodeName ());
    System.out.println (EMPL. GetAttributes(). Item (0) .getNodeValue ());
    EMP = doc.createElement ("employee") of the item;
    EmpName = doc.createElement ('name') of the element;
    empName.setTextContent ("jyothihj");
    EmpRole = doc.createElement ('role') of the element;
    empRole.setTextContent ("assist");
    emp.appendChild (empName);
    emp.appendChild (empRole);
    root.appendChild (emp);
    Transformer tFormer = TransformerFactory.newInstance () .newTransformer ();
    tFormer.setOutputProperty (OutputKeys.METHOD, "xml");
    Source source = new DOMSource (doc);
    Result result = new StreamResult (new leader (url.toURI ()));
    tFormer.transform (source, result);

    When I write the XML with the code above all the xml code is written on a single line in the file. There is no line break and alignment. It is very difficult to read and understand. I want the output something like below.

    < employee >
    hariM < name > < / employee >
    < Role > Manager < / role >
    < / employee >

    To get put above what additional things should be made?

    tFormer.setOutputProperty ("{http://xml.apache.org/xslt} dash-amount", "2" ');

  • problem with utf8 words in xml use

    Hello. Today, many components such as galleries and drop-down menus and... use dynamic data of files (xml)...

    After I have editing xml and put a few words utf8 a backup when I test my swf I don't show anything in the lines that I replace the English data with other langauge...

    on others, I see unknown characters!

    What is the problem?

    the Xml file has:

    <? XML version = "1.0" encoding = "UTF-8"? >

    in the header so why Flash cannot act as Dreamweaver or a Web page and...

    what setting I need to change in my xml or Flash to use unicode and langauges type characters in xml files?

    Thank you...

    There's no problem with your xml code.

    but you will need to embed a font in your swf file that displays correctly characters Arabs and non-Arabs.

  • How cut the length of the string IE channel name here, if it exceeds 20 characters or letters. The channel name is dynamically analyzed the spreadsheet/xml file.

    How cut the length of the string IE channel name here, if it exceeds 20 characters or letters. The channel name is dynamically analyzed the spreadsheet/xml file.

    My Council of Europe in the .js file is

    function generateHTMLMarkup (i, channel) {}
    Alert ("this is lang" + str);
    var str ="";
    "Str += '.

    ";
    "Str += '.
    "+ ""+""+"
    ";
    Alert ("this is lang" + str);
    return str;

    }

    nerateHTMLMarkup: function (i, channel) {}
    Alert ("this is lang" + str);
    var str ="";
    "Str += '.

    ";
    str += "" +
    "" +
    "" + channel ['name'] + "" +.
    "" + "
    ";
    "Str += '.
    "+ "" + "
    ";
    Alert ("this is lang" + str);
    return str;

    etc.

    Give mthe rhythm and the exact code where Ihave tio get implemented.

    in the code, replace change

    channelName var = channel ['name'];

    TO

    channelName var = channel ['name'];

  • invokeMethod (java.lang.String, org.w3c.dom.Element) method not found

    Calling a Web Service that returns an XML file. The XML file must be passed to a method that puts the XML in a table in my database.

    I'll download the 3 files that are used for this.

    When I rebuild my files I get the following error in CustomerCO.java:
    Error (78,38): invokeMethod (java.lang.String, org.w3c.dom.Element) method is not not in the interface oracle.apps.fnd.framework.OAApplicationModule

    Line 78 reads as follows:
    String status = (String) am.invokeMethod ("initSaveXml", wsXml);

    Any suggestions?

    PS: I am a newbie in java and framework :-(


    Here are my files:

    _______________________________________________________________________________________________________________________________
    CustomerCO.java:

    /*===========================================================================+
    | Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, California.
    | All rights reserved. |
    +===========================================================================+
    | HISTORY |
    +===========================================================================*/
    package xxcu.oracle.apps.ar.customer.server.webui;

    import java.io.Serializable;

    import java.lang.Exception;

    Import oracle.apps.fnd.common.VersionInfo;
    Import oracle.apps.fnd.framework.OAApplicationModule;
    Import oracle.apps.fnd.framework.webui.OAControllerImpl;
    Import oracle.apps.fnd.framework.webui.OAPageContext;
    Import oracle.apps.fnd.framework.webui.beans.OAWebBean;

    Import org.w3c.dom.Element;

    Import xxcu.oracle.apps.ar.customer.ws.LindorffWS;




    /**
    * Controller for...
    */
    SerializableAttribute public class ClientCo extends OAControllerImpl implements Serializable
    {
    public static final String RCS_ID = "$Header$";
    public static final boolean RCS_ID_RECORDED =
    VersionInfo.recordClassVersion (RCS_ID, "packagename %");

    /**
    * Layout and logical configuration for a region page.
    @param pageContext OA page context
    @param webBean the grain of web for the region
    */
    ' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)
    {
    super.processRequest (pageContext, webBean);
    }

    /**
    * How to manage remittances form for form elements in
    * a region.
    @param pageContext OA page context
    @param webBean the grain of web for the region
    */
    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
    {
    super.processFormRequest (pageContext, webBean);
    /**
    * 2009.07.09, Roy Feirud, lagt til for a utfore sporring
    */

    If (pageContext.getParameter ("Search")! = null)
    {
    OAApplicationModule am = pageContext.getApplicationModule (webBean);
    Bomber sokekriteriene til LindorffWS
    String Name = pageContext.getParameter ("SearchName");
    Address of string = pageContext.getParameter ("SearchAddress");
    String Zip = pageContext.getParameter ("SearchZipCode");
    String city = pageContext.getParameter ("SearchCity");
    Born string = pageContext.getParameter ("SearchBorn");
    Phone chain = pageContext.getParameter ("SearchPhoneNo");
    [Serializable] param = {Zip, name, address, city, born, phone};
    Bygger sokestrengen
    String SearchString = (String) am.invokeMethod ("initBuildString", param);
    Initialiserer LindorffWS
    LindorffWS WsConnection = new LindorffWS();
    Try
    {
    Kaller Web Sevice fra Lindorff
    Element wsXml = (Element) WsConnection.XmlFulltextOperator (SearchString).

    String status = (String) am.invokeMethod ("initSaveXml", wsXml);
    }
    catch (Exception WsExp)
    {
    WsConnection = new LindorffWS();
    System.out.println ("Kall til LindorffWS feilet!");
    }

    am.invokeMethod ("initQueryCustomer");
    }
    }

    }

    _______________________________________________________________________________________________________________________________


    CustomerAMImpl.java:

    package xxcu.oracle.apps.ar.customer.server;
    import java.io.Serializable;

    to import java.sql.CallableStatement;
    import java.sql.SQLException;
    import java.sql.Types;

    Import oracle.apps.fnd.common.MessageToken;
    Import oracle.apps.fnd.framework.OAException;
    Import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
    Import oracle.apps.fnd.framework.server.OADBTransaction;
    Import oracle.apps.fnd.framework.server.OAExceptionUtils;

    Import org.w3c.dom.Element;

    // ---------------------------------------------------------------
    -File generated by Oracle Business Components for Java.
    // ---------------------------------------------------------------

    SerializableAttribute public class CustomerAMImpl extends OAApplicationModuleImpl implements Serializable
    {
    /**
    *
    * This is the default constructor (do not remove)
    */
    public CustomerAMImpl()
    {
    }

    /**
    *
    * Main sample for debugging code of business using the tester components.
    */
    Public Shared Sub main (String [] args)
    {
    launchTester ("xxcu.oracle.apps.ar.customer.server", "CustomerAMLocal");
    }

    /**
    *
    Getter of the container for CustomerVO1
    */
    public CustomerVOImpl getCustomerVO1()
    {
    return (CustomerVOImpl) findViewObject ("CustomerVO1");
    }
    /**
    * 2009.07.09, Roy Feirud, Lagt til for a utfore sporring.
    */
    Public Sub initQueryCustomer()
    {
    CustomerVOImpl vo = getCustomerVO1();
    If (vo! = null)
    {
    vo.initQuery ();
    }
    }
    /**
    * 2009.08.31, Roy Feirud, Lagt til a bygge entered opp til WebService hos Lindorff.
    */
    public String initBuildString (String Name
    Address of the string
    String Zip
    City of string
    String born
    String phone)
    {
    String ws_string = null;
    CallableStatement cs = null;
    Try
    {
    String sql = "BEGIN ISS_WS_LINDORFF_PKG. BUILD_STRING (?,?,?,?,?,?,?); END; « ;
    TXN OADBTransaction = getOADBTransaction();
    CS = txn.createCallableStatement(sql,1);
    cs.setString(1,Name);
    cs.setString(2,Address);
    cs.setString(3,Zip);
    cs.setString(4,City);
    cs.setString(5,Born);
    cs.setString(6,Phone);
    cs.registerOutParameter(7,Types.VARCHAR);
    CS. Execute();
    OAExceptionUtils.checkErrors (txn);
    WS_STRING = cs.getString (7);
    CS. Close();
    }
    catch (SQLException sqle)
    {
    String Prosedyre = 'ISS_WS_LINDORFF_PKG. BUILD_STRING ';
    String Errmsg = sqle.toString ();
    Tokens [] MessageToken = {new MessageToken ("PROSEDYRE", Prosedyre), new MessageToken ("Message of ERROR", Errmsg)};
    throw new OAException ("ISS", "ISS_PLSQL_ERROR", tokens, OAException.ERROR, null);
    }
    Return ws_string;
    }
    public String initSaveXml (item WsXml)
    {
    String status = "error";
    CallableStatement cs = null;
    Try
    {
    String sql = "BEGIN ISS_XML2TABLE_PKG. ISS_AR_CUSTOMERS_TMP (?,?); END; « ;
    TXN OADBTransaction = getOADBTransaction();
    CS = txn.createCallableStatement(sql,1);
    cs.setObject(1,WsXml);
    cs.registerOutParameter(2,Types.VARCHAR);
    CS. Execute();
    OAExceptionUtils.checkErrors (txn);
    Status = cs.getString (2);
    CS. Close();
    }
    catch (SQLException sqle)
    {
    String Prosedyre = 'ISS_XML2TABLE_PKG. ISS_AR_CUSTOMERS_TMP ';
    String Errmsg = sqle.toString ();
    Tokens [] MessageToken = {new MessageToken ("PROSEDYRE", Prosedyre), new MessageToken ("Message of ERROR", Errmsg)};
    throw new OAException ("ISS", "ISS_PLSQL_ERROR", tokens, OAException.ERROR, null);
    }
    Back to Status;
    }
    }

    _______________________________________________________________________________________________________________________________

    LindorffWS.java:

    package xxcu.oracle.apps.ar.customer.ws;
    Import oracle.soap.transport.http.OracleSOAPHTTPConnection.
    Import org.apache.soap.encoding.soapenc.BeanSerializer.
    Import org.apache.soap.encoding.SOAPMappingRegistry;
    Import org.apache.soap.util.xml.QName.
    import java.util.Vector;
    Import org.w3c.dom.Element;
    import java.net.URL;
    Import org.apache.soap.Body;
    Import org.apache.soap.Envelope.
    Import org.apache.soap.messaging.Message.
    Import oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub;
    /**
    * Generated by the generator of Stub/Skeleton Oracle9i JDeveloper Web Services.
    * Date of creation: kills Jul 10 10:37:21 2009 CEST
    * WSDL URL: http://services.lindorffmatch.com/Search/Search.asmx?WSDL
    */

    SerializableAttribute public class LindorffWS extends WrappedDocLiteralStub
    {
    public LindorffWS()
    {
    m_httpConnection = new OracleSOAPHTTPConnection();
    }

    public endpoint point String = "http://services.lindorffmatch.com/Search/Search.asmx";
    private OracleSOAPHTTPConnection m_httpConnection = null;
    private SOAPMappingRegistry m_smr = null;

    public XmlFulltextOperator (String xmlString) element throws Exception
    {
    EndpointURL URL = new URL (endpoint);

    Envelope requestEnv = new Envelope();
    Body requestBody = new Body();
    Vector requestBodyEntries = new Vector();

    String wrappingName = "XmlFulltextOperator";
    String targetNamespace = "http://services.lindorffmatch.com/search";
    Vector requestData = new Vector();
    requestData.add (new Object() {"xmlString", xmlString});

    requestBodyEntries.addElement ((wrappingName, targetNamespace, requestData) toElement);
    requestBody.setBodyEntries (requestBodyEntries);
    requestEnv.setBody (requestBody);

    Message msg = new Message();
    msg.setSOAPTransport (m_httpConnection);
    Msg. Send (endpointURL, "http://services.lindorffmatch.com/search/XmlFulltextOperator", requestEnv);

    Envelope responseEnv = msg.receiveEnvelope ();
    Body responseBody = responseEnv.getBody ();
    Vector responseData = responseBody.getBodyEntries ();

    return (Element) fromElement ((Element) responseData.elementAt (0), org.w3c.dom.Element.class);
    }
    }


    _______________________________________________________________________________________________________________________________

    Hello

    Create an Interface to your application Module then the interface of your method call,

    see http://www.oraclearea51.com/oracle-technical-articles/oa-framework/oa-framework-beginners-guide/213-how-to-call-am-methods-from-controller-without-using-invokemethod.html for creation of Interface for AM and call it to the controller.

    Kind regards
    Out Sharma

  • Best way to Parse XML using Dreamweaver CC 2015.3

    I was on a wild goose chase - trying to figure out how to parse XML using DW CC

    every article I read, says something about XML & XSLT, but it is no longer available in the new CC - I read about using jQuery or php, but have not yet find a resource to learn specifically "using DW CC.

    I'm willing to learn how to parse XML with DW CC but I would get a definitive direction to go before I'm trying to learn something that adobe will put in 'end of life '.

    advice or links to resources that can parse XML DW CC 2015 would be LARGELY APPRECIATED, thank you

    x 126 has written:

    What I'm asking is...

    1. What is the best procedure to insert XML into a page using DW CC 2015 as my editor?
    a. what happened to spry? b. what happened to XSLT?

    As Nancy explained, Spry has been abandoned by Adobe, a few years ago.

    XSLT server behavior has been removed at the same time as other server behaviors Dreamweaver CC. The problem with most of the PHP server behaviors was that they were based on code that has been removed from PHP 7. The XSLT server behavior didn't rely on these features, but it was not the most friendly of server behaviors. XSLT is a complex language that is to be avoided when parsing XML unless you really know what you're doing.

    The easiest way to manipulate XML in Dreamweaver should use PHP SimpleXML. I've linked to the samples page in the PHP online documentation. Believe me, it's much easier than trying to do battle with XSLT. If you have a subscription to lynda.com, you can learn more about SimpleXML to my operational with SimpleXMLclass.

  • How can I recursively parse an xml using XQuery document?

    I have an open and I have to using XQuery in Response.xml can transform someone give me an idea how to analyze recursive Xml using XQuery documents. Any help will be appreciated. Thanks in advance

    Open

    " < = xmlns:ns0 ns0:GlobalRoutePlanServiceGOPResponse ' http://www.example.org/input ">

    < GlobalRoutePlanServiceResponse >

    < response >

    Buid_1 < Buid > < / Buid >

    SalesOrderId_1 < SalesOrderId > < / SalesOrderId >

    EODD_1 < EODD > < / EODD >

    LODD_1 < LODD > < / LODD >

    < legs >

    < leg >

    < level > 1 < / level >

    < Resources > ShipMode_1 < / resources >

    < FSBD > FSBD_1 < / FSBD >

    FABD_1 < FABD > < / FABD >

    < leg >

    < leg >

    < niv.2 > < / level >

    < Resources > ShipMode_2 < / resources >

    < FSBD > FSBD_1 < / FSBD >

    FABD_1 < FABD > < / FABD >

    < leg >

    < leg >

    < level > 3.1 < / level >

    < resources > ShipMode_3.1 & amp; < / resources >

    < FSBD > FSBD_1 < / FSBD >

    FABD_1 < FABD > < / FABD >

    < leg >

    < leg >

    < level > 4.1 < / level >

    < Resources > ShipMode_4.1 < / resources >

    < FSBD > FSBD_1 < / FSBD >

    FABD_1 < FABD > < / FABD >

    < leg > < / foot >

    < / foot >

    < / foot >

    < / foot >

    < leg >

    < level > 3.2 < / level >

    < Resources > ShipMode_3.2 < / resources >

    < FSBD > FSBD_1 < / FSBD >

    FABD_1 < FABD > < / FABD >

    < leg >

    < leg >

    < level > 4.2 < / level >

    < Resources > ShipMode_4.2 < / resources >

    < FSBD > FSBD_1 < / FSBD >

    FABD_1 < FABD > < / FABD >

    < leg > < / foot >

    < / foot >

    < / foot >

    < / foot >

    < / foot >

    < / foot >

    < / foot >

    < / foot >

    < / legs >

    < / answer >

    < / GlobalRoutePlanServiceResponse >

    < / ns0:GlobalRoutePlanServiceGOPResponse >

    Response.Xml

    " < = xmlns:ns0 ns0:InputParameters ' http://xmlns.Oracle.com/pcbpel/adapter/DB/SP/GOP_DB_FSL_Msg_Persist_SVC "> "

    < ns0:P_LEG >

    < ns0:P_LEG_ITEM >

    < ns0:LEGS_LEVEL > 1 < / ns0:LEGS_LEVEL >

    < ns0:SHIPMODE > ShipMode_1 < / ns0:SHIPMODE >

    < / ns0:P_LEG_ITEM >

    < ns0:P_LEG_ITEM >

    < ns0:LEGS_LEVEL > 2 < / ns0:LEGS_LEVEL >

    < ns0:SHIPMODE > ShipMode_2 < / ns0:SHIPMODE >

    < / ns0:P_LEG_ITEM >

    < ns0:P_LEG_ITEM >

    < ns0:LEGS_LEVEL > 3.1 < / ns0:LEGS_LEVEL >

    < ns0:SHIPMODE > ShipMode_3.1 < / ns0:SHIPMODE >

    < / ns0:P_LEG_ITEM >

    < ns0:P_LEG_ITEM >

    < ns0:LEGS_LEVEL > 4.1 < / ns0:LEGS_LEVEL >

    < ns0:SHIPMODE > ShipMode_4.1 < / ns0:SHIPMODE >

    < / ns0:P_LEG_ITEM >

    < ns0:P_LEG_ITEM >

    < ns0:LEGS_LEVEL > 3.2 < / ns0:LEGS_LEVEL >

    < ns0:SHIPMODE > ShipMode_3.2 < / ns0:SHIPMODE >

    < / ns0:P_LEG_ITEM >

    < ns0:P_LEG_ITEM >

    < ns0:LEGS_LEVEL > 4.2 < / ns0:LEGS_LEVEL >

    < ns0:SHIPMODE > ShipMode_4.2 < / ns0:SHIPMODE >

    < / ns0:P_LEG_ITEM >

    < / ns0:P_LEG >

    < / ns0:InputParameters >

    You can use recursive expressions function XQuery to browse down the tree (even if it's more than a job for XSLT), but in this case, it is probably easier to use a descendant axis:

    declare namespace ns0 = "http://xmlns.oracle.com/pcbpel/adapter/db/sp/GOP_DB_FSL_Msg_Persist_SVC";

    declare namespace ns1 = "http://www.example.org/INPUT";

    {

    for $i in $request / ns1:GlobalRoutePlanServiceGOPResponse / GlobalRoutePlanServiceResponse/response/legs / / leg

    where exists($i/Level)

    return

    {$i} / level/text)

    {$i} / ShipMode/text)

    }

    Output:

    http://xmlns.Oracle.com/pcbpel/adapter/DB/SP/GOP_DB_FSL_Msg_Persist_SVC">

    1

    ShipMode_1

    2

    ShipMode_2

    3.1

    ShipMode_3.1 &

    4.1

    ShipMode_4.1

    3.2

    ShipMode_3.2

    4.2

    ShipMode_4.2

  • Error trying to update the model XML using XML Publisher administrator

    Hello people,

    We are on R12.1.3

    I changed a condition in a report and you try to download the new model XML using XML Publisher administrator.

    When I click the button to apply, it is throwing an error "bad request".

    Navigation: XML Publisher Admin > data definitions > query report

    Click on the report name > click 'Update file', in addition to the data model > choose file > click Apply

    I get the below error

    Bad request

    Your browser has requested that this server could not understand.


    Now, I could not download a new model of XML.


    I'm doing something wrong.


    Kind regards

    Kris

    user10163762 wrote:

    Thanks Eugen and Hussein.

    The problem is not with the template.

    It seems to be a problem in this particular case.

    Transferred to another instance.

    However once I run the program, I can't display the output as flashes and disappears from the window of the browser.

    My colleague says, it's to do with the trusted site to download something from the browser.

    Can you please guide me on how to solve this problem?

    http://bit.LY/1k8e2vi

    Thank you

    Hussein

  • Reading XML using XSLT data

    I have a problem of reading xml using XSLT data. There is a CASE - 900000016, has two sequences. SEQ NO1 and NO2 SEQ. Each sequence has an activity. I try to display the info of the activity under corresponding sequences.

    SEQ 01

    Activity

    SEQ 02

    Activity

    This is the xml file.

    <? XML version = "1.0" encoding = "utf-8" standalone = "yes"? >
    < case >
    < EventList >
    < PAEvent >
    < CASENO > 900000016 < / CASENO >
    < > 01 SEQ_NO < / SEQ_NO >
    APPROVED < STATUS > < / STATUS >
    < REASON > < / REASON >
    < PR_NO > 506024 < / PR_NO >
    < SRV_BEG_DAT > 11/02/2010 < / SRV_BEG_DAT >
    < SRV_END_DAT > 11/02/2010 < / SRV_END_DAT >
    < / PAEvent >
    < PAEvent >
    < CASENO > 900000016 < / CASENO >
    < > 02 SEQ_NO < / SEQ_NO >
    APPROVED < STATUS > < / STATUS >
    < TYPE > < / TYPE >
    < REASON > < / REASON >
    < PR_NO > < / PR_NO >
    < SRV_BEG_DAT > 11/02/2010 < / SRV_BEG_DAT >
    < SRV_END_DAT > 28/02/2010 < / SRV_END_DAT >
    < / PAEvent >
    false < hasErrors > < / hasErrors >
    < / EventList >
    < ActivitiesList >
    < PAActivity >
    < CASE_NO > 900000016 < / CASE_NO >
    < > 01 SEQNO < / SEQNO >
    < ACTVTY_LN_NO > 03 < / ACTVTY_LN_NO >
    < ACTVTY_TYP >: < / ACTVTY_TYP >
    < UNIT_PRC > 16.2500 < / UNIT_PRC >
    < / PAActivity >
    < PAActivity >
    < CASE_NO > 900000016 < / CASE_NO >
    < > 02 SEQNO < / SEQNO >
    < ACTVTY_LN_NO > 01 < / ACTVTY_LN_NO >
    < ACTVTY_TYP > P < / ACTVTY_TYP >
    < UNIT_PRC > 0.0000 < / UNIT_PRC >
    < / PAActivity >
    false < hasErrors > < / hasErrors >
    < / ActivitiesList >
    < / Cases >


    XSLT code

    <? XML version = "1.0" encoding = "utf-8"? >
    < xsl: stylesheet version = "1.0" xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" >
    < xsl: template match = "Case" >
    < div Id = "dvEvents" align = "center" >
    <!--list of events-->
    < table width = "75%" border = "0" >
    < style tr = "text-align: left;" background-color: gray; ">
    < td colspan = "8" class = "SmallBlackFontBolder" >
    < b > < /b > events
    < table >
    < /tr >
    < xsl: for-each select = "EventList/PAEvent" >
    < b >
    < class td = "SmallBlackFontBold" style = "" text-align: left; "width ="8% "> Seq No.: < table >"
    < class td = "SmallGreenFontBold" align = "left" width = "10%" >
    < xsl: value-of select = "SEQ_NO" / >
    < table >

    < class td = "SmallBlackFontBold" align = "left" width = "8%" > status: < table >
    < td align = "left" width = "11%" >
    < xsl: value-of select = "STATUS" / >
    < table >
    < /tr >

    < b >
    < td >
    <!--get the list of activities-->
    < xsl: for-each select = "Case/ActivitiesList/PAActivity" >
    < xsl: if test = "Case, EventList, PAEvent, SEQ_NO = case, ActivitiesList, PAActivity, SEQNO" >
    < table width = "75%" >
    < b >
    < class td = "SmallBlackFontBold" style = "" text-align: left; "width ="8% "> Seq No.: < table >"
    < class td = "SmallGreenFontBold" align = "left" width = "10%" >
    < xsl: value-of select = "Case, ActivitiesList, PAActivity, SEQNO" / >
    < table >
    Unit price < td >: < table >
    < td align = "left" width = "11%" >
    < xsl: value-of select = "Case, ActivitiesList, PAActivity, UNIT_PRC" / >
    < table >
    < /tr >
    < /table >
    < / xsl: if >
    < / xsl: foreach >
    <!--get the list of activities-->
    < table >
    < /tr >

    < b >
    < class td = "SmallBlackFontBold" align = "left" width = "8%" > reason: < table >
    < td align = "left" width = "20%" >
    < xsl: value-of select = "PAEvent/EventList/reason" / >
    < table >
    < td > < table >
    < td > < table >
    < class td = "SmallBlackFontBold" align = "left" width = "14%" > PR_NO: < table >
    < td align = "left" width = "18%" >
    < xsl: value-of select = "PAEvent/EventList/PR_NO" / >
    < table >
    < /tr >

    < / xsl: foreach >
    < /table >

    < / div >
    < / xsl: template >
    < / xsl: stylesheet >

    Published by: 837989 on April 25, 2013 14:13
  • Assign default names to fragment XML using XQuery

    Hello world!

    I need to add a default namespace declaration to a fragment of XML using XQuery. I wrote following statement to assign the fragment to $body:

    < SOAP - env:Body > {}
    {FN - bea: inlinedXML ($content / text ())}
    < / soap - env:Body >

    The problem is "$content / text ()" has no namespace declaration, so I need to assign a default namespace (xmlns = "" ") to it in order to apply some XQuery transformations to its content.

    I know it can be done easily with a XSLT, but I would like to use XQuery instead.

    Could someone tell me how can I perform this task?

    Thank you in advance,

    Daniel.

    Hello

    I suppose that you have two options here:

    (1) addition of namespace directly on the XML textual content in $content / text (), then call fn - bea: inlinedXML.
    Assuming that the implementation of XQuery in BEA supports the function fn: replace (according to the doc, he does-) or equivalent:

    fn-bea:inlinedXML( fn:replace($content/text(), '^<([^>]+)>', '<$1 xmlns="default_ns">') )
    

    For example, if $content / text () is

    TEST!
    

    The result will be:

    TEST!
    

    (2) the addition of namespace on the generated instance (that is, after the call to fn - bea: inlinedXML).

    It's a little more complex and it will take something like this:
    http://www.xqueryfunctions.com/XQ/functx_change-element-NS-deep.html

  • Problem with Framemaker 9 Dita XML Files in Framemaker 10

    I just upgraded to Framemaker 10. I meet a number of problems when trying to work with my help of Dita XML topics, that were last saved in Framemaker 9.

    1. using the default Dita model

    When I open one of my documents in Framemaker 10, the Dita 1.2 model ditabase.fm is automatically applied. Everything seems fine. But then when I convert the XML using Eclipse (which is essentially the html, so we go from XML to HTML format) using Dita Open Toolkit ant scripts, I see this message:

    [pipeline] [DOTJ013E] [ERROR] failed to parse the referenced file 'html\c_licensing.xml' cause from under exception. Please correct the base on the exception message reference.
    [pipeline] c_licensing.xml 25:Attribute 'xmlns:ditaarch' of the line must be declared for the element type "dita".

    Then, I opened the xml file in a text editor, and I saw this on line 25:

    < dita xmlns:ditaarch = "http://dita.oasis-open.org/architecture/2005/" > ""

    25 line seems to me. Am I missing something?

    2 go to a model of Dita 1.1

    I tried to get around the above problem. In Framemaker, I tried to put another structured as the default application. I closed all files and choose the structured Dita 1.1 application default (it defaults to the Dita 1.1. Composite app.)

    Then I tried to open my file: I got this message inside Framemaker:

    'Failed XML validation. Continue?
    Error to the [path of ACCESS], line 25, tank 72, Message: attribute ' {http://www.w3.org/2000/xmlns/} ditaarch' is not declared for the element "dita"

    Sounds familiar, isn't?

    I went from Dita 1.1 by default. Composite application structured with the Dita 1.1. Application of structured theme. Then I messed the source file and saved. The messages that I got in the FrameMaker log window included one above, plus I had a variety of messages to unknown element, things like:

    Element unknown dita.

    notion of unknown element,

    various attributes are not reported for concept,

    element unknown conbody.

    If I go to the Dita 1.1 mash all these messages diappear except this one:

    Attribute ' {http://www.w3.org/2000/xmlns/} ditaarch' is not declared for the element "dita"


    My conversion scripts of Ant in the Dita Open Toolkit are still unable to process this file. They give the same message as above in (1) and the file is not converted to HTML.


    Can someone help me with this problem? I also posted this question in the Group of users of Dita on Yahoo Groups. If I get an answer in one place, I'll post it in the other.

    Thank you

    Nina P.

    [transferred to dita-users]

    Hi Nina...

    The xmlns:ditaarch attribute must be the "topic" not dita root element. If demand for FM10 structure is the award that it is wrong. You create composite themes (multiple topics in a single file under the root of dita)? If this isn't the case, you can get rid of the total dita element and who can "solve" the problem.

    The first mistake you get (#1) says that the xmlns:ditaarch attribute must be declared (that is, defined in the DTD)... It's not (because it is not supposed to be there (as I know). This is not to say that it must be declared in the DITA file.

    Even for the #2 error... the composite 1.1 app is apparently set up correctly, so it's saying the same thing that the Old Testament said... "you have this attribute in the XML file, but it is not declared in the DTD.

    Your subsequent error on the missing items is because you spent in the "topic" DTD, who does not know the dita element or elements based on concepts.

    If you can unpack your files dita element (because you are just using a topic in each file), which can solve the problem. But you probably need to do is open these files in a text editor and remove the attribute of xmlns:ditaarch of them (he not really needs on the elements of the topic either since it is the default value). Then, I turn to the composite 1.1 as a default app. I'll take a look at the FM10 1.2 default app and see what happens. (I have not seen this problem since I was on DITA-FMx, which has its own structure of apps).

    See you soon,.

    .. .Scott

    Scott Prentice

    Leximation, Inc..

    www.leximation.com

  • CSXSInterface: Call to jsx-function with a string xml as parameter?

    Hello

    for me CSXSInterface worked very well so far with all the settings and the SyncResults.

    Now, I do a few operations xml with actionscript 3 and photoshop scripts. I am able to return an XML from a function javascript to actionscript3 and do all kinds of operations with it. Somehow, I can't call a function with the string xml as parameter jsx? Does anyone have a solution for this?

    Here is what I tried:

    var xmlStr:String = _myXml.toXMLString(); // I tried _myXml.toString() too but it didnt work either ;-(
    CSXSInterface.instance.evalScript("xmlFunction", xmlStr);
    
    

    Thanks in advance!

    Not for me it isn't...

    I use Flash Builder (with Extension Builder added on) too, and I don't remember having seen a mistake HostObject of any kind. Import you the classes necessary?

    Substances

  • I have a problem connecting on ebay if you use firefox, I get a message saying that the page does not not despite having cleared my cache and cookies.

    I have a problem connecting on ebay when you use firefox, it has been fine for years, but since a few days, I get a message saying that the page does not when I try to log in. I tried to clear my cookies and cache, but it makes no difference. This does not occur in google chrome and I can log on fine there so what's the problem with firefox?

    Do you also have this problem if you temporarily switch to private browsing mode?

    • Tools > Options > privacy, choose the setting Firefox will: use the custom settings for the story of
    • Select: [X] 'always use private browsing mode '.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance/themes).

    See also:

  • my iPhone 6s has problems with the GPS when I use some applications, it does not work well and give especially the bad road. Can someone help me?

    my iPhone 6s has problems with the GPS when I use some applications, it does not work well and give especially the bad road. Can someone help me?

    My iphone 6 has started having the same problem. Its literally the GPS. Saying that it does not find me at all. Ive seen say location for more than an hour in the suburbs of chicago. It started to happen to me after I downloaded the latest update for the iphone. I hope they react and let you know what is happening because I'm dying to know as well.

  • I can't see the pictures in my yahoo email, I did not have this problem with other browsers. I used the safe mode and still no success. Help, please.

    Question
    I can't see the pictures in my yahoo email, I did not have this problem with other browsers. I used the mode 5 firefox safe and always without success. Help, please

    To help other users find solutions, please come back to this Thread and connect you to the
    Forum with your user name and password:

    Click on 'resolved' beside the answer above that BETTER resolved your issue

    DO NOT CLICK on 'Solved It' next to this answer

Maybe you are looking for

  • I have two libraries in photo how can I remove a

    Hello I have two photo libraries, I built two by accident. I need to get rid of one, how to remove it? When I drag the to the trash, the progress bar just hangs and nothing happens. Thank you

  • HP photosmart c4580 program cannot find the installation 7zs7e9a file

    HP photosmart c4580 after installation at the start of problem cannot find the 7zs7e9a Setup file. cancellation of the attempt to install the software will run without problem. tried to extract files without 7zs7e9a file in the temp directory all sol

  • Family Windows XP Edition installation error code

    I am trying to install Windows XP Home Edition on a new PC and I got the following error message: "an error was encounterd that prevents all upward.  Data error: cyclic redundancy check verification.  Set up the file log says: Installation failed:D:\

  • Pressing on space does not change input kanji in Japanese IME

    I use Windows 7 and tried to write Japanese before. It worked, but only in a separate window that shows the hiragana and kanji before placing it in the document itself. This separate window disappear with the deletion of the words and did not reappea

  • HP Officejet J5780 all-in-One printing backwards!

    Hello! I have a HP Officejet J5780 all-in-one and had no problems at all since I bought it 15 or 16 months ago. However, a strange thing is happening out of the blue - today, everything that I try to print print back - very odd! Clues as to what this