XML Creator

Good day!
Can anyone help me about this error I have been making a Java program that will create a XML file.
C:\Users\XMLCreator.java:18: package com.sun.org.apache.xml.internal.serialize does not exist
import com.sun.org.apache.xml.internal.serialize.OutputFormat;
^
C:\Users\PWord\XMLCreator.java:19: package com.sun.org.apache.xml.internal.serialize does not exist
import com.sun.org.apache.xml.internal.serialize.XMLSerializer;
Please help me. Thank you so much and God Bless.
Jojo

package com.sun.org.apache.xml.internal.serialize does not existThat means that the package "com.sun.org.apache.xml.internal.serialize" doesn't exist.
Check your classpath.

Similar Messages

  • Which sitemap XML creator

    Please can you help, I want to create a sitemap for my website for google
    I need an xml file
    Please can you tell me which one is best to use for this (on a mac), hopefully it will be free? if not can you tell me the best one to use?
    Thanks

    found out myself

  • ValueObject XML creator - NEED SUGGESTION

    This is a real time scenario...
    1) I have many value objects generated from third party software.
    (A Value object is a simple java file which has a set of attributes in it with corresponding set/get methods. Ofcourse they may inturn contain other value obejcts )
    2) I need to know whether i can write a parser which will read the src/class file & generate an XML file for all the attributes present in the valueObject.This includes all the primitive data types, collections & other value objects present in the original value object.
    3) I need a corresponding unmarshall for the same ..ie., some parser which would actually read from the file & generate a value object (java object)
    Please note that some value objects may be extremely large with so many other large value objects contained in it. All that im interested is i need to populate these objects using an Xml file rather than manually writing java code to set each and every attribute present in the object (imagine , when u need to set the attribute of another object within this which is present in hierarchy of 5-6 levels ... u need to create all the corresponding objects before actually setting that one VALUE !!!)
    can anybody tell me if there is already a tool for doing the same if not , what parser .. what reference material i need to look into so that i can write my own stuff to do it.
    Assume im new to XML Parsers.
    PLEASE SUGGEST, Any help highly appreciated

    The only one that I am aware of that's relatively simple to use is castor (http://castor.org) that should give you what you need. If your VOs are rather complex, you may need to do some "tweaking" of the XML, which Castor also provides for.
    Unfortunately, JAXB doesn't (yet?) have this kind of capability that I know of. It might be buried somewhere in the API and not show-cased in the (date) Web Service Tutorial.

  • Import of XML file failed in portal using XML Content and Action

    Hi Friends,
    I am trying to import the simple XML file which is just creating the folder in the PORTAL_CONTENT using XML CONTENT AND ACTIONS  which is one way of creating the portal content. GO TO SYSTEM ADMINISTRATION > TRANSPORT > XML CONTENT AND ACTIONS > IMPORT.
    The reason for using this import tool is to upload the backend Business roles, which is not not working on our corporate portal. To test the import functionality I used the following xml file (I got this XML file by exporting the test folder in the portal using the same tool)
    <GenericCreator author="XML Creator" version="XML Automatic Creation" mode="clean,execute" report.level="success" createMode="1" default.locale="en" ignore="false">
    <Context name="portal_content" objectClass="com.sap.portal.pcd.gl.GlContext"></Context>     <Property name="parent1" value="pcd:portal_content"/>
         <Context name="com.dri.fldr.im" objectClass="com.sap.portal.pcd.gl.GlContext" create_as="0" parent="$">
              <Attributes>
                   <Attribute name="com.sap.portal.pcm.Description" type="text">
                        <AttributeValue value="" locale=""/>
                        <Attribute name="administration" type="string">
                             <AttributeValue value=""/>
                        </Attribute>
                        <Attribute name="Inheritance" type="string">
                             <AttributeValue value="NONFINAL"/>
                        </Attribute>
                   </Attribute>
                   <Attribute name="com.sap.portal.pcm.Title" type="text">
                        <AttributeValue value="test" locale=""/>
                        <AttributeValue value="test" locale="en"/>
                        <Attribute name="administration" type="string">
                             <AttributeValue value=""/>
                        </Attribute>
                        <Attribute name="mandatory" type="string">
                             <AttributeValue value="true"/>
                        </Attribute>
                        <Attribute name="Inheritance" type="string">
                             <AttributeValue value="NONFINAL"/>
                        </Attribute>
                   </Attribute>
              </Attributes>
         </Context>
    </GenericCreator>
    SDN BLOCKED THE XML The above XML file works fine in other portal in the landscape but not in corporate portal ( which is freshly build recently).Following error message is display when i am trying to upload the file
    Status Name Action Type Comment
    General Extracting root node E:\usr\sap\EPD\JC00\j2ee\cluster\server0\%USERPROFILE%\AppData\Local\Temp\tmp_masscontent4135391959047431276.xml Failed to extract root node
    General Extracting root node E:\usr\sap\EPD\JC00\j2ee\cluster\server0\%USERPROFILE%\AppData\Local\Temp\tmp_masscontent4135391959047431276.xml Parsing failed .
    Dont know is there a service/ configurations needs to be done to enable this feature?.
    Thanks
    Edited by: hammad on Sep 4, 2009 5:48 PM
    Edited by: hammad on Sep 4, 2009 5:49 PM

    The problem statement is not very clear.
    Try following this how to guide [https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/207a2141-c870-2910-e080-90c920b24f47&overridelayout=true|How-To]
    Best Regards,
    Prasanna K

  • XML Content Upload Error - Failed to Find Handler

    Hi
    I am trying to upload an xml file using the tools under system administration but when I start the import I get the error cannot find handler. There are no other error messages and the view report features do not work. The handlers xml file property is <b>content.handlers.xml</b>
    I have found a few postings on this issue but the only solution I have seen said that you need 2004 s
    I am using 2004s
    <b>version=7.0.8.0.0
    Implementation-Version=7.8.0.0.200606180650</b>
    Can anyone help me to identify what is missing?
    Many Thanks
    Andy Irvine

    Hi Martin
    I downloaded an xml file containing worksets. The purpose being to mass change the sort priority of  a folder within the workset (used as an entry point).
    I want to change the sort priority of the folder with id 'mywork' from 100 to 10. As there are many roles (100s rather than 1000s thankfully)  I figured this would be the quickest/easiest solution. I used find & replace on a a large section of the my work section and changed only the section shown in the code below to be 10 instead of 100.
    [code]
    <Attribute name="com.sap.portal.navigation.Priority" type="string">
        <AttributeValue value="10.0"/>
        <Attribute name="administration" type="string">
        <AttributeValue value=""/>
      </Attribute>     
    [/code]
    The head of the file is as follows
    [code]
    GenericCreator author="XML Creator" version="XML Automatic Creation" mode="clean,execute" report.level="success" createMode="3" default.locale="en" ignore="false">
         <Property name="parent1" value="pcd:portal_content/com.burberry.content/Europe"/>
         <Context name="worksets" objectClass="com.sap.portal.pcd.gl.GlContext" create_as="0" parent="$">
              <Attributes>
    [/code]
    It errors out straight away which is what led me to believe that maybe this was an issue with the portal configuration rather than my xml file. Any suggestions?
    Message was edited by:
            Andy Irvine

  • Creating workflow using InDesign with XML

    What is the fastest and most accurate way to make a workflow from a XML file with Indesign?
    Lets say we will make a school yearbook with about 30 pages. each page has 20 portraits of students with their name beneath each image.
    The XML files is generatet from a home-made XML-creator and got student information from databases.
    I have heard of easy way to do this with Indesign and templates, snippets and maybe a script.
    Can anyone tell me step by step how to, or does anyone know of a tutorial movie etc?
    thanx

    Also if any one has any thoughts on creating a front end using XML files, pros cons etc??? Just prototyping and wondering should i do down this road!!

  • XML for begginers

    Hi there, i am completly new to xml and only a begginer at java, im trying to use java to create Xml pages and to be able to read from them. i was told to install xerces to my class path but i am lost as to how to do this, there are loads of xerces packages and dont know which ones to use or where to but them, i have fallen at the first hurdle of my project and can anyone help me make a basic xml creator java program or help me get started
    thanks in advance
    Eoing

    import org.apche.xerces.parsers.DomParser;
    import org.xml.sax.SAXException;
    import org.w3c.dom.Document;
    import java.io.IOException;
    import org.w3c.dom.NodeList;
    import org.w3c.dom.Node;
    import org.w3c.dom.NamedNodeMap;
    public class DOMExample{
         public static void main(String arg[]) throws IOException,SAXException{
              DOMParser parser = new DOMParser();
              parser.paerse("games.xml");
              Document dom = parser.getDocument();
              NodeList games = dom.getElementsByTagName("game");
              for(int i=0;games.getLenght();i++){
                   node aNode = games.item(i);
              System.out.println(textNode.getFirstChild().getNodeValue());
              NamedNodeMap attributes = aNode.getAttributes();
                   for (int a=0;a<attributes.getLenght();a++){
                        Node theAttribute = attributes.item(a);
                        System.out.println(theAttribute.getNodeName() + "="+ theAttribute.getNodeValue());
    Error message -package org.apache.xerces.parsers does not exist?
    Sorry for this i am a absolute begginer and i am trying to following a book- java xml and web services bible, as it works slowing through every step of how to create a java program that enable xml and soap to connect to Amazon web services to retrieve information about a book by sending it a ISBN number, and as it is all new to me i am starting from the start. Do you know anything about web services, is this the right way to go?

  • Query iview error

    Hi all,
    I set up an EP6 SP11 system connecting to my BW server.  All the connector tests are good and I'm able to upload roles from the BW server.
    When I try to create and preview a query iview, I get an error: No response from the backend application
    In the DQE logs, there's this exception:
    <QUERY_SERVICE.ERROR> Physical group has an access pattern which has not been met: group(s) [SIDCLNT300.T0D_SHIPTO]; access pattern(s) [[SIDCLNT300.T0D_SHIPTO.T0LONGITUDE], [SIDCLNT300.T0D_SHIPTO.T0LATITUDE],
    in
    com.metamatrix.query.optimizer.relational.rules.RuleAccessPatternValidation.execute(RuleAccessPatternValidation.java:60)
         at com.metamatrix.query.optimizer.relational.RelationalPlanner.executeRules(RelationalPlanner.java:500)
    Any ideas?  Thanks.

    Thanks for the help Michael. Here is the xml file, I have also sent it to your email address.
    Cheers,
    faB
    - <GenericCreator author="XML Creator" version="XML Automatic Creation" mode="clean,execute" report.level="success" createMode="1" default.locale="en" ignore="false">
      <Property name="parent1" value="pcd:portal_content/XXX/XXXXXX/IVIEWS" />
    - <Context name="qtf" objectClass="com.sapportals.portal.iview" create_as="0" template="par:/applications/com.sap.pct.srv.portaldataviewer/components/SAPQueryTemplate" parent="$">
    - <Attributes>
    - <Attribute name="com.sap.portal.private.iview.PropertiesUrl" type="string">
      <AttributeValue value="pcd:com.sap.portal.system/applications/com.sap.pct.srv.portaldataviewer/components/SAPQueryTemplate" />
      </Attribute>
    - <Attribute name="PDVParameterQUERY_WORKSPACE" type="string">
      <AttributeValue value="G" />
      </Attribute>
    - <Attribute name="PDVParameterQUERY_VARIANT" type="string">
      <AttributeValue value="TEST" />
    - <Attribute name="personalization" type="string">
      <AttributeValue value="NO_DIALOG" />
      </Attribute>
      </Attribute>
    - <Attribute name="PDVParameterQUERY_NAME" type="string">
      <AttributeValue value="ZQ_ECCSPO_01" />
      </Attribute>
    - <Attribute name="PDVParameterQUERY_USERGROUP" type="string">
      <AttributeValue value="ECCSPO" />
      </Attribute>
    - <Attribute name="PDVParameterQUERY_CREATE_SELTAB_FM" type="string">
      <AttributeValue value="" />
    - <Attribute name="personalization" type="string">
      <AttributeValue value="NO_DIALOG" />
      </Attribute>
      </Attribute>
    - <Attribute name="com.sap.portal.iview.MainObject" type="string">
      <AttributeValue value="" />
      </Attribute>
    - <Attribute name="SystemIdentifier" type="string">
      <AttributeValue value="SAP_CRM" />
      </Attribute>
      </Attributes>
      </Context>
      </GenericCreator>

  • Sap query iview error

    Hi there!
    I have a sap query iview in the portal that should display a query in CRM (build with SQ01). The query in the backend is fine, but I get this error message in the portal.
    "Error in Source. Message not available"
    I have double-checked that the connection parameters of the sap query iview are OK, also I have run a DQE connection test on the system that was(see below) also OK.
    Any thoughts on this?
    Thanks in advance
    -fab
    p.s. I reward points generously
    Test Connection through the DQE
      Test Details:
    The test consists of the following steps:
    1. Checks the existence of a backend admin user ID/password in the system properties.
    2. Checks the existence of a default alias for the system.
    3. Checks the DQE connection.
      Results
    1. Backend admin user ID and password exist in the system properties.
    2. Default alias of the system exists.
    3. DQE connection successful. If you continue to experience problems, verify the DQE admin user ID and password properties for this system object.

    Thanks for the help Michael. Here is the xml file, I have also sent it to your email address.
    Cheers,
    faB
    - <GenericCreator author="XML Creator" version="XML Automatic Creation" mode="clean,execute" report.level="success" createMode="1" default.locale="en" ignore="false">
      <Property name="parent1" value="pcd:portal_content/XXX/XXXXXX/IVIEWS" />
    - <Context name="qtf" objectClass="com.sapportals.portal.iview" create_as="0" template="par:/applications/com.sap.pct.srv.portaldataviewer/components/SAPQueryTemplate" parent="$">
    - <Attributes>
    - <Attribute name="com.sap.portal.private.iview.PropertiesUrl" type="string">
      <AttributeValue value="pcd:com.sap.portal.system/applications/com.sap.pct.srv.portaldataviewer/components/SAPQueryTemplate" />
      </Attribute>
    - <Attribute name="PDVParameterQUERY_WORKSPACE" type="string">
      <AttributeValue value="G" />
      </Attribute>
    - <Attribute name="PDVParameterQUERY_VARIANT" type="string">
      <AttributeValue value="TEST" />
    - <Attribute name="personalization" type="string">
      <AttributeValue value="NO_DIALOG" />
      </Attribute>
      </Attribute>
    - <Attribute name="PDVParameterQUERY_NAME" type="string">
      <AttributeValue value="ZQ_ECCSPO_01" />
      </Attribute>
    - <Attribute name="PDVParameterQUERY_USERGROUP" type="string">
      <AttributeValue value="ECCSPO" />
      </Attribute>
    - <Attribute name="PDVParameterQUERY_CREATE_SELTAB_FM" type="string">
      <AttributeValue value="" />
    - <Attribute name="personalization" type="string">
      <AttributeValue value="NO_DIALOG" />
      </Attribute>
      </Attribute>
    - <Attribute name="com.sap.portal.iview.MainObject" type="string">
      <AttributeValue value="" />
      </Attribute>
    - <Attribute name="SystemIdentifier" type="string">
      <AttributeValue value="SAP_CRM" />
      </Attribute>
      </Attributes>
      </Context>
      </GenericCreator>

  • JMS-related sun-appserver-pe8.0.0_01 default server start failure

    On Dell Dimension 2400 XP system, appserver startup always fails after trying for 60 seconds to verify if the JMS service startup succeeded. This condition started 10 July. What is JMS? Why does it fail? What to do? Rich

    Hi
    The Java Message Service (JMS) is a messaging standard that allows application components based on the Java 2 Platform, Enterprise Edition (J2EE) to create, send, receive, and read messages. It enables distributed communication that is loosely coupled, reliable, and asynchronous.
    JMS is bundled and installed with Application Server 8. JMS runs on a port 17676. If this port is occupied by any other process, the JMS will not start. Please check if this port is occupied by any other process or change the default JMS port in domain.xml (<Creator-root>/Appserver8/domains/creator/config/domain.xml)
    Thanks
    SG

  • Script to Publish to Portal or Default Folder

    I have a number of qrys (100 ish) that need to be published to the portal.
    The procedure I am using is accessing Qry Designer, bringing up the query, and publishing it. It works fine, but there are many steps.
    Here is the url that gets launched:
    https://<url>:<port>/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex3x?system=SAP_BW&CMD=START_BROADCASTER70&SOURCE_QUERY=ZMM_M001_Q001&START_WIZARD=X&DISTRIBUTION_TYPE=PCD_EXPORT
    The steps that really piss me off is that when I get to the portal dialog then I have to navigate down into the PCD structure to find my directory structure. Its the same PCD directory structure every time!! Many clicks here!!! The web dialog does not let me paste the PCD directory in. I have to manually navigate every time.
    I don't want to change my security access to the one folder, because then I'll have to change it back. That's not a good fix.
    What I'd prefer is:
    1) a setting where I can default the PCD structure for publishing, or
    2) a script I can run from the portal that gets the query iview and creates it in directory I specify.
    Any help is greatly appreciated!!
    BTW, I see this html in the source of the web contained in an anchor tag with the "Execute" button:
    javascript:SAPBWQDefSubmitFormWithPar('CMD','WIZARD_EXECUTE','','','','')"    
    Mike
    Edited by: Michael Hill on Mar 2, 2009 5:38 PM

    Mike
    Here is a sample snippet for creating a single iview for a BW report in the
    Folder - portal_content/customerfolder/bi/ivu/fin
    Template - ZDTS_M01_W0002
    iView id - com.customer.bi.report1
    Report Name - Finance Report
    For creating more just repeat the context element again and again and changing the above parameters
    <?xml version="1.0" encoding="utf-8"?>
    <GenericCreator author="XML Creator" version="XML Automatic Creation" mode="execute" report.level="success" createMode="1" default.locale="en" ignore="false">
    <Property name="parent1" value="pcd:portal_content/customerfolder/bi/ivu/fin" />
    <Context name="com.customer.bi.report1" objectClass="com.sapportals.portal.iview" create_as="1" parent="${parent1}" template="pcd:portal_content/templates/iviews/sap_bw_report_iview">
        <Attributes>
          <Attribute name="Report" type="string">
            <AttributeValue value="TEMPLATE_ID=ZDTS_M01_W0002"/>
          </Attribute>
          <Attribute name="System" type="string">
            <AttributeValue value="SAP_BW" />
          </Attribute>
          <Attribute name="com.sap.portal.iview.IsTemplate" type="string">
            <AttributeValue value="false" />
          </Attribute>
          <Attribute name="com.sap.portal.iview.HeightType" type="string">
            <AttributeValue value="FULL_PAGE" />
          </Attribute>
          <Attribute name="com.sap.portal.pcm.Title" type="text">
            <AttributeValue value="Finance Report" locale="en" />
            <AttributeValue value="Finance Report" locale="" />
          </Attribute>
        </Attributes>
      </Context>
    </GenericCreator>

  • How to chage the welcome file in web.xml using creator?

    Hi guys,
    I want to set the welcome file in web.xml to index.html but every time I run my project in creator, creator replaces index.html by faces/index.jsp. I need the index.html to check if the browser enables cookies & javascript and then I redirect to index.jsp. If I change the web.xml in a common editor, build the war-file with ant and deploy the project with tomcat, everything is fine. but how can I change it in creator?
    thanks in advance

    Sorry, that doesn't make much sense.
    The XML you gave is a configuration file for txt2xml utility. It doesn't represent the output format.
    Are you a user of this utility?

  • In XML Show Form display Creator FirstName and LastName ?

    Hi all,
    In XML Form Builder i want to display the creator FirstName and LastName ( Diamond Admin) in the Show Form.
    For egs:
    Logon ID: diamond_admin
    Last Name: Admin
    First Name: Diamond
    In the EDIT Form By using $sap_user and also createdBy property i'm getting the creator name as diamond_admin but i want to display the FirstName and LastName (Diamond Admin).
    2)In the EDIT Form i used the Label for Time Based Publishing(TBP)
    Opening Date = TimeStamp control
    Closing Date = TimeStamp control
    In the RenderList Form i'm showing the Closing Date label its display the date and time.
    Closing Date= 05/12/08 08:00:00 PM
    But i requirement is to show the closing date only not time(Closing Date= 05/12/08) in the RenderListItem Form..
    How to do this?Please help me...
    Regards
    Thillai J

    When you are editing the Show Form, select the correct label in the form and in the property list area (bottom right) you have a property named "Display As". Select "Display Name" for the value.
    Make sure that in your Data Model your property has the data type "user"
    The "Display As" parameter should also work for your date problem as you can select "Short" to only display the date.

  • Studio creator and faces-config.xml

    How can I configure Sun Studio Creator to use /WEB-INF/faces-config.xml for all configuration items. Currently navigation and managed beans are seperated into 2 files. I have a bunch of JSF application with using another tool that I would like to test editing using Studio Creator but the Sun Studio Creator ignores the faces-config.xml for the navigation editor and managed bean editor.

    Hi ,
    The follwing link may probably answer your query.
    http://swforum.sun.com/jive/thread.jspa?threadID=50215&tstart=15
    Regards.,

  • Xml to indesign workflow question - the best xml editor or doc creator

    My department is considering the switch from our team members working directly in InDesign to a process where their work is imported to InDesign as xml content, then formatted automatically.
    Does anyone with relevant experience have ideas as to the best programs to create the xml documents in? Framemaker seems like a canidate, however, I am wondering about open source or other options.
    Thank you

    You probably want to look at InDesign's Data Merge feature.
    Unfortunately it won't accept XML directly, so you'll have to convert your XML to CSV or TSV. But that's pretty easy to do.

Maybe you are looking for

  • Page alignment problems in browser

    Hi Wondered if anyone could help with this ... I have 8 pages on a web site ... after designing the first page, I effectively cloned the next seven so that size, format, position, etc. would be the same. However, for some reason when I view them all

  • How do i remove my phone number from my mac for iMessage?

    I have a macbook air and whenever i try messaging my daughter's phone who has an iphone 5, it ends up in coming back to my mac. So that means my mac is using her phone number as imessage. I tried removing it but i cannot find the setting to do so. PL

  • How to take off scroll lock

    i cant drag items to certain areas, any help as to why?

  • Photoshop CS5 Type Tool Crash

    I have a problem with Photoshop CS5's type tool. I can open Photoshop, but each time I select the type tool or a type related palette and sometimes the HDR tool, my photoshop simple crashes, asks me to reopen and eventually brings up a crash report.

  • 2012 R2 RU1 agents appear unknown to 2012 R2 RU4 servers

    I am in the process of consolidating 3 DPM servers that are running out of space into one new server. to do this I setup a new DPM 2012 R2 server and applied the latest updates, thus receiving rollup 4. Now I am in the process of migrating my agents