Using the + symbol in XML

Hello all,
I am having a small problem with an external XML file. I
can't seem to get the + symbol to work in XML files or in text
files. OK, let me back up a second, I know how to use the + symbol
in the text file by encoding it with %2B, but I'd like to find a
way to make it easier for the copywriter to edit the files. Saving
as Unicode-8 only works with odd characters like ä etc, not
with all symbols.
Back to my mail problem. I can't figure out a way to use the
+ at all in the XML file I am using for the news ticker. I have
tried embedding the text in a CDATA tag, but it doesn't seem to do
anything and am not sure I am parsing it correctly. The text shows
up fine, just sans the symbols I need. Here's a brief segment of
the XML parser I am using:

Try saving it in UTF-8, and also add encoding info to the
xml:
<?xml version="1.0" encoding="UTF-8"?>
Worked fine for me.
greets,
blemmo

Similar Messages

  • Why use the symbol "|" here?

    Why use the symbol "|" here?
    SQL> @D:/temp/emp_package.sql|

    Hi,
    To me it seems that some parameter is passed (but i doubt why somebody would be passsing "|") to the sql file during the run time.
    One reason could be to tell the file what is the deliminator. Is this the case for you?
    Regards
    Anurag Tibrewal.

  • How can i Use the symbols from the main html page?

    Hello!
    Im trying to find a solution for days!!
    i need to use my symbols from the html page, for example to hide the symbol i want to use: sym.$( "sym1" ).hide(); or to make it draggable (with jquery UI) i wanna use: sym.$( "sym1" ).draggable(); but it doesn't work.
    i know i can do the same from the edgeActions.js file and here is the working code:
          Symbol.bindElementAction(compId, symbolName, "document", "compositionReady", function(sym, e) {
             var ex1 = sym.$( "farmer" );
             //ex1.html( '<input type="text" />' );
             yepnope({
                 both: [
                     "libs/jquery-ui.min.js",
                     "libs/jquery-ui.css",
                 callback: function() {
             ( ex1 ).draggable();
    but the main problem is that it's always include this file as the very last .js, so in case Im trying to use the symbols from the index.html page (For example:  ( ex1 ).draggable();  ) the variables are undefined (because it read the html first)...
    Please Help, Im desperate..
    Thank you very much!!!
    Eran

    Hi, Eran-
    You will want to use the AdobeEdge.* APIs, which should give you access from external JavaScript into your Edge Animation.  The API document has information on that.  However, you will need to wait until the runtime loads, so you should use the bootstrapping method that is outlined in Josh Hatwich's post on our blog:
    http://blogs.adobe.com/edge/2012/05/15/bootstrapping-edge-compositions/
    Hope that helps!
    -Elaine

  • How to use Euro symbol in xml tags?

    How to use Euro symbol in xml tags?

    What do you mean by "in xml tags"? Can you post a three-line XML snippet showing what you hope to achieve?

  • I am using Quickbooks Pro with my macbook pro. It does not allow me to use the @ symbol when I am inputting an email address into the client information section. What do I do?

    I am using Quickbooks Pro with my macbook pro. It does not allow me to use the @ symbol when I am inputting an email address into the client information section. What do I do?

    stefani88 wrote: It seems from other discussions my current OS on my laptop is the reason why it won't sync but people running older versions of windows aren't having a problem. So I don't get it.
    Oh. Gosh.  What's Windows got to do with anything? You're on Leopard, on a Mac.
    It seems from other discussions my current OS on my laptop is the reason why it won't sync

  • Won't let me use the symbols to put my passcode in?

    Will not let me use the symbols to put my passcode in?

    Have you turned off Simple passcode in Settings>General>Passcode Lock? With the default simple passcode on, you only have digits.
    From the Users Guide:
    Turn Simple Passcode on or off:  Choose General > Passcode Lock, then turn Simple
    Passcode on or off.
    A simple passcode is a four-digit number. To increase security, turn off Simple Passcode
    and use a longer passcode with a combination of numbers, letters, punctuation, and
    special characters.

  • How to log to a file using the log-configuration.xml?

    Hello *,
    I created following log-configuration.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE log-configuration SYSTEM "log-configuration.dtd">
    <log-configuration>
         <log-formatters>
              <log-formatter name="DefaultFormatter" pattern="%25d %-60l %s: %m" type="TraceFormatter"/>
         </log-formatters>
         <log-destinations>
              <log-destination count="10" effective-severity="ALL" limit="1000000" name="DefaultDestination" pattern="FDLB_GUI.%g.trc" type="FileLog">
                   <formatter-ref name="DefaultFormatter"/>
              </log-destination>
         </log-destinations>
         <log-controllers>
              <log-controller effective-severity="ALL" maximum-severity="FATAL" minimum-severity="DEBUG" name="DefaultController">
                   <associated-destinations>
                        <destination-ref association-type="LOG" name="DefaultDestination"/>
                   </associated-destinations>
              </log-controller>
         </log-controllers>
    </log-configuration>
    From a Web Dynpro view I want to use the log-controller. I'm using the default logger:
    Logging location.
      private static final com.sap.tc.logging.Location logger =
        com.sap.tc.logging.Location.getLocation(EinstiegView.class);
    In the wdInit method I want to log a simple message:
      public void wdDoInit()
        //@@begin wdDoInit()
        logger.setEffectiveSeverity(com.sap.tc.logging.Severity.ALL);
        logger.fatalT("test logging to new file logger");
        //@@end wdDoInit()
    I see the message in the defaultTrace.0.log, but my own log file doesn't appear.
    How to address the log-controller of my log-configuration.xml?
    Thanks in advance,
    Jürgen Dufner

    Hi,
    I guess the follwing part of your log-configuration is wrong:
    <log-controller
    effective-severity="ALL"
    maximum-severity="FATAL" m
    nimum-severity="DEBUG"
    name="DefaultController">
    Try to change in log-configuration the value for name in <log-controller> to the start sequence of the packages to be logged. E.g., all our packages should start with com.yourcompanyname.projectname
    To log all messages from classes in these packages make the name = com.yourcompanyname.projectname.
    Hope that helps,
    Regards, Astrid
    Therefore I list

  • Calling XML Publisher Report from OAF using the conc programs xml output

    Hi all
    I am trying to call a report from oa Framework. I have developed the Template in the Ms-Word and for Generating the xml data i used the view object defined in OAF, this approach is working for me...i used the following code to do this in the AM as mentioned in many places...
    public XMLNode getEmpDataXML()
    OAViewObject vo = (OAViewObject)findViewObject("EmpVO1");
    XMLNode xmlNode = (XMLNode) vo.writeXML(4, XMLInterface.XML_OPT_ALL_ROWS);
    return xmlNode;
    now i want that instead of the view object i should use the xml generated by the report which is registered as concurrnet program with output as xml.
    I am submitting the concurrent program and able to get the request id ...
    Now from here what should i do.. please suggest...

    Hi,
    I am thinking of doing something very similar. What i was planning on doing is submitting the request, and then redirecting the user to the concurrent request page. They can then use the standard functionality to view output and get the xml to use the appropriate template.
    i would be interested in how you get the concurrent request id from the submitted job.
    Many thanks
    Rupesh

  • How to use the api in xml format

    Hi All,
    I want make a call to the following api
    <Reload
    Pin = xs:string
    ReloadCard = xs:string>
    Amount
    </Reload>
    Where in Reload is an api accepting pin and reload card as attributes.
    How would i call this Reload using java?
    Thank You

    The documentation probably also talks about how that's exposed, as in whether there's an HTTP endpoint available, or something. You might have to save that XML to a file in a particular location, or pump it down a socket. Who knows? Talk to your vendor. What is that XML for anyway, some e-gift scheme?

  • How can I use the symbol "or" in a while loop

    I have an error in the attach Vi. Do you know how I can fix it? Thanks
    Attachments:
    while_ctrl.vi ‏33 KB

    No. When you compare two numbers, you get a number out. Look at and read the function help. Try this. The function I used is Elapsed Time. Somehow the label got mangled when I pasted it into paint.
    Message Edited by Dennis Knutson on 03-20-200602:35 PM
    Attachments:
    Elapsed Time.JPG ‏13 KB

  • Exception when using the unsignedByte, short  XML Schema datatypes

    Hi,
    I am generating the java classes form my XSD file, where i have defined the
    datatypes like int and short.
    Example:
    1) <xs:element name="Red" type="xs:unsignedByte"/>
    2) <xs:element name="Border" type="xs:int" default="0"/>
    but JAXB is giving the following exception -
    DefaultValidationEventHandler: [ERROR]: Unexpected text ""
    Location:
    java.lang.NullPointerException
         at com.sun.xml.bind.DatatypeConverterImpl.parseShort(DatatypeConverterImpl.java:90)
         at javax.xml.bind.DatatypeConverter.parseShort(DatatypeConverter.java:170)
         at com.sumasoft.tbws.xmlapi.form.formelements.impl.ColorTypeImpl$Unmarshaller.eatText1(ColorTypeImpl.java:373)
         at com.sumasoft.tbws.xmlapi.form.formelements.impl.ColorTypeImpl$Unmarshaller.handleText(ColorTypeImpl.java:350)
         at com.sumasoft.tbws.xmlapi.form.formelements.impl.runtime.AbstractUnmarshallingEventHandlerImpl.text(AbstractUnmarshallingEventHandlerImpl.java:82)
         at com.sumasoft.tbws.xmlapi.form.formelements.impl.runtime.SAXUnmarshallerHandlerImpl.consumeText(SAXUnmarshallerHandlerImpl.java:210)
         at com.sumasoft.tbws.xmlapi.form.formelements.impl.runtime.SAXUnmarshallerHandlerImpl.processText(SAXUnmarshallerHandlerImpl.java:214)
         at com.sumasoft.tbws.xmlapi.form.formelements.impl.runtime.SAXUnmarshallerHandlerImpl.endElement(SAXUnmarshallerHandlerImpl.java:139)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
         at com.sumasoft.tbws.xmlapi.form.formelements.impl.runtime.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:140)
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:131)
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:178)
         at com.sumasoft.tbws.xmlapi.TBWSUnmarshaller.readXML(TBWSUnmarshaller.java:66)
         at com.sumasoft.tbws.xmlapi.TBWSUnmarshaller.<init>(TBWSUnmarshaller.java:43)
         at com.sumasoft.tbws.xmlapi.TBWSUnmarshaller.main(TBWSUnmarshaller.java:188)
    --------------- linked to ------------------
    javax.xml.bind.UnmarshalException: Unexpected text ""
    - with linked exception:
    [java.lang.NullPointerException]
         at com.sumasoft.tbws.xmlapi.form.formelements.impl.runtime.SAXUnmarshallerHandlerImpl.handleEvent(SAXUnmarshallerHandlerImpl.java:577)
         at com.sumasoft.tbws.xmlapi.form.formelements.impl.runtime.AbstractUnmarshallingEventHandlerImpl.reportError(AbstractUnmarshallingEventHandlerImpl.java:139)
         at com.sumasoft.tbws.xmlapi.form.formelements.impl.runtime.AbstractUnmarshallingEventHandlerImpl.handleUnexpectedTextException(AbstractUnmarshallingEventHandlerImpl.java:121)
         at com.sumasoft.tbws.xmlapi.form.formelements.impl.ColorTypeImpl$Unmarshaller.handleText(ColorTypeImpl.java:363)
         at com.sumasoft.tbws.xmlapi.form.formelements.impl.runtime.AbstractUnmarshallingEventHandlerImpl.text(AbstractUnmarshallingEventHandlerImpl.java:82)
         at com.sumasoft.tbws.xmlapi.form.formelements.impl.runtime.SAXUnmarshallerHandlerImpl.consumeText(SAXUnmarshallerHandlerImpl.java:210)
         at com.sumasoft.tbws.xmlapi.form.formelements.impl.runtime.SAXUnmarshallerHandlerImpl.processText(SAXUnmarshallerHandlerImpl.java:214)
         at com.sumasoft.tbws.xmlapi.form.formelements.impl.runtime.SAXUnmarshallerHandlerImpl.endElement(SAXUnmarshallerHandlerImpl.java:139)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
         at com.sumasoft.tbws.xmlapi.form.formelements.impl.runtime.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:140)
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:131)
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:178)
         at com.sumasoft.tbws.xmlapi.TBWSUnmarshaller.readXML(TBWSUnmarshaller.java:66)
         at com.sumasoft.tbws.xmlapi.TBWSUnmarshaller.<init>(TBWSUnmarshaller.java:43)
         at com.sumasoft.tbws.xmlapi.TBWSUnmarshaller.main(TBWSUnmarshaller.java:188)
    If the Datatypes are valid then why the JAXB is throwing this exception?
    Any one knows , plz help.

    I have a reason to believe that my anti virus scanner is modifying the jar file.
    I had initially downloaded the jar file from sourceforge. It had the com.iwss.... package.
    Now i dowloaded the file in zip format and that package is not there in the zip file. But i have a new problem now.
    My eclispe just crashed with the following error message.
    JVM terminated. Exit code=1
    D:\Oracle\product\10.1.0\Client_2\jre\1.4.2\bin\javaw.exe
    -Xms40m
    -Xmx256m
    -jar C:\eclipse\startup.jar
    -os win32
    -ws win32
    -arch x86
    -launcher C:\eclipse\eclipse.exe
    -name Eclipse
    -showsplash 600
    -exitdata 1bc_74
    -vm D:\Oracle\product\10.1.0\Client_2\jre\1.4.2\bin\javaw.exe
    -vmargs
    -Xms40m
    -Xmx256m
    -jar C:\eclipse\startup.jar

  • How can i add custom attributes to a new Class Object using the API ?

    Hello everyone,
    Here is my problem. I just created a subclass of Document using the API (not XML), by creating a ClassObjectDefinition and a ClassObject. Here is the code :
    // doc is an instance of Document
    ClassObject co = doc.getClassObject();
    ClassObjectDefinition cod = new ClassObjectDefinition(ifsSession);
    cod.setSuperclass(co);
    cod.setSuperclassName(co.getName());
    cod.setName("MYDocument");
    ClassObject c = (ClassObject)ifsSession.createSchemaObject(cod);
    Everything seems to be OK since i can see the new class when i use ifsmgr. But my question is : how can i add custom attributes to this new class ? Here is what i tried :
    AttributeDefinition value = new AttributeDefinition(ifsSession);
    value.setAttribute("FOO", AttributeValue.newAttributeValue("bar"));
    c.addAttribute(value);
    But i got the following error message :
    oracle.ifs.common.IfsException: IFS-30002: Unable to create new LibraryObject
    java.sql.SQLException: ORA-01400: impossible d'insirer NULL dans ("IFSSYS"."ODM_ATTRIBUTE"."DATATYPE")
    oracle.ifs.server.S_LibraryObjectData oracle.ifs.beans.LibrarySession.DMNewSchemaObject(oracle.ifs.server.S_LibraryObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.NewSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.createSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    void fr.sword.ifs.GestionDocument.IFSDocument.createDocument(java.lang.String)
    void fr.sword.ifs.GestionDocument.IFSDocument.main(java.lang.String[])
    So, what am i doing wrong ?
    More generally, are we restricted in the types of the attributes ? (for example, would it be possible to add an attribute that would be an inputStream ? Or an object that i have already created ?).
    Any help would be appreciated. Thanks in advance.
    Guillaume
    PS : i'm using Oracle iFS 1.1.9 on NT4 SP6 and Oracle 8.1.7
    null

    Hi Guillaume,
    you're welcome. Don't know exactly, but assume that ATTRIBUTEDATATYPE_UNKNOWN
    is used to check for erronous cases only
    and it shouldn't be used otherwise.
    Creating your own objects could be simply done via
    ClassObject ifsClassObject;
    DocumentDefinition ifsDocDef = new DocumentDefinition(ifsSession);
    // get class object for my very own document
    ifsClassObject = ClassObject.getClassObjectFromLabel(ifsSession, "MYDOCUMENT");
    // set the class for the document i'd like to create
    ifsDocDef.setClassObject(ifsClassObject);
    // set attributes and content for the document...
    ifsDocDef.setAttribute("MYFOO_ATTRIBUTE",....);
    ifsDocDef.setContent("This is the content of my document");
    // create the document...
    PublicObject doc = ifsSession.createPublicObject(ifsDocDef);
    null

  • Error while using the XMLP API to generate a report

    Hi all,
    I am trying to generate a report using stand-alone application by the JAVA API (User doc Ch 11). I am using RFT template for this.
    Step1: Create XSL from RTF file. I could do this. Example is given in page 262 of the guide. Here is the code snippet (all import, try/catch removed):
    RTFProcessor rtfProcessor = new RTFProcessor(args[0]);
    rtfProcessor.setOutput(args[1]); // output file
    rtfProcessor.process();
    This generated a XSL file correctly.
    Step 2: Using the XSL and XML file, it could generate a output. This is failing for me. (Page 265). Code snippet below:
    <snippet>
    FOProcessor processor = new FOProcessor();
    processor.setData(args[0]); // set XML input file
    processor.setTemplate(args[1]); // set XSL input file
    processor.setOutput(args[2]); //set output file
    processor.setOutputFormat(FOProcessor.FORMAT_PDF);
    // Start processing
    try
    processor.generate();
    catch (XDOException e)
    e.printStackTrace();
    System.exit(1);
    System.exit(0);
    </snippet>
    It compiles. When I run this program (class), I get the following errors and I do not know where to look for help/resolution:
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: label missing for column index 1
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: label missing for column index 2
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: label missing for column index 3
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: label missing for column index 4
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: label missing for column index 5
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: label missing for column index 6
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: label missing for column index 7
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 1 at row index 0
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 2 at row index 0
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 3 at row index 0
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 4 at row index 0
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 5 at row index 0
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 6 at row index 0
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 7 at row index 0
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 1 at row index 1
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 2 at row index 1
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 3 at row index 1
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 4 at row index 1
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 5 at row index 1
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 6 at row index 1
    PROBLEM: In oracle.dss.graph.Graph::createLocalGridDataSource: missing data for column index 7 at row index 1
    PROBLEM: In oracle.dss.graph.GraphControllerAdapter::public void perspectiveEvent( TDGEvent event ): inappropriate data: partial data is null

    Hi Tim,
    My present requirement is :
    In OAF page, When i click "generate" button, it should generate pdf which is XML publisher output.
    My code is able to generate pdf/excel file with zero bytes and also i'm unable to open this pdf file. Following code i have written in processFormRequest:
    I debugged this code . it's working fine till processor.setOutputFormat(FOProcessor.FORMAT_EXCEL); It's unable to execute the FO processor Engine.
    Kindly please help me to rectify this error.
    if (pageContext.getParameter ("GeneratePDF")!= null)
    try{  
    RTFProcessor rtf = new RTFProcessor("C:\\cash_receipt\\CASH_RECEIPT_XML5.rtf");
    System.out.println(" step -2");
    rtf.setOutput("C:\\cash_receipt\\CASH_RECEIPT_XML7.xsl"); // set output AS XSL FILE
    System.out.println(" step -1");
    Document dc = rtf.process();
    System.out.println(" rtf.process()" + dc.toString());
    FOProcessor processor = new FOProcessor();
    // set the data definition
    processor.setData("C:\\cash_receipt\\cash_receipt_xml5.xml");
    System.out.println(" step 1");
    //("C:\\cash_receipt\\cash_receipt_xml5.xml");
    // set the template
    processor.setTemplate("C:\\cash_receipt\\CASH_RECEIPT_XML7.xsl");
    System.out.println(" step 2");
    //("C:\\cash_receipt\\CASH_RECEIPT_XML5.xsl");
    //Set the output file and the output format for a PDF document:
    processor.setOutput("C:\\TestXML.Excel");
    System.out.println(" step 3");
    processor.setOutputFormat(FOProcessor.FORMAT_EXCEL);
    // run the FO processor Engine
    System.out.println(" step 4");
    processor.generate();
    System.out.println(" step 5");
    catch (Exception e) {
    e.printStackTrace();
    System.out.println("XDOException " + e.getMessage());
    thanks,
    Keshav

  • How to save file with the "/" symbol in the name?

    Hi,
    I have Adobe Professional 8.  I need to save files with names that include the symbol /, but Adobe interprets, for example, A/88/6, as file name 6, in a folder named 88, in a folder named A, and sets up new folders to accommodate that.  I cannot substitute another symbol as I already have thousands of pdf files in a database using the / symbol, and I need them in the same folders.
    I would very greatly appreciate any advice,
    thanks,
    Mo.

    Thanks.
    As I said, I'm pretty ignorant about these things.  I wouldn't know how to begin using a "hack".  All I know is that I was able, for over a year, to save .pdf files directly from my browser on several computers, and use the forbidden "/" symbol in every file name.  After saving the files, Adobe will happily open them, and allow me to edit and re-save them, although I now see that it will not allow me to "save as" them under a different name without removing that symbol.
    I may not be tech-savvy, but I can state that everything I have said here and above is entirely accurate.  I would be happy to open a dropbox account to show you countless .pdfs with the symbol "/" in the name.
    This is honestly not that big a deal.  I greatly appreciate this discussion, and you have inspired me to become slightly less computer-ignorant.
    Hope you all had a great New Year.  I am still recovering.
    Cheers,
    Mo.

  • Query container only relative to the Berkeley DB XML Enviroment location.

    I have been having a great deal of trouble getting any queries to work using the Berkeley DB XML API. I am using Java 7 as my language and Netbeans 7.0.1 as my platform. After lots of experimentation with the Shell and observing its behavior, I seem to have isolated it to my not being able to specify a full absolute path name for my containers. Apparently to use XmlManager.query() or XmlManager.prepare().execute(), I must root the query with either a collection() or doc() entry at the beginning. The problem seems to be that both collection() and doc() only will take a simple filename+extension form for the name of my container. The XmlManager then resolves this name relative to the location of my XmlManager environment. If I specify anything else, I get "Error 6: Invalid URI format [err:FODC0002]" as an XmlException. I have tried various formats of absolute paths for my containers and none of them will work. For my application, the user needs to be able to put his containers anywhere on a local drive. It appears that the only way that I can operate is to put all my containers in that one Environment directory, or possibly one below it. This is a super-serious problem for me if this is true.
    I could find no call in the API to override this behavior. I had hoped that XmlQueryContext.setBaseURI() would do that since it said it was for specifying a URI against which local things would be resolved against. But, any call to it with a directory path also raised the same XmlExpection. Being new with this produce, I am hoping that I am missing something obvious. Can anyone help?
    Edward Fairchild
    [email protected]

    I have more information about this problem. It appears to be caused by spaces in the filename or path of the container in forming the collection() prefix in my xQuery. For the following test, I was using a container named "EEF-PGL10GenAncestors Only.gcdb" in my Environment folder. Here is the code that fails.
    XmlQueryContext context = xmlmanGCDB.createQueryContext();
    context.setEvaluationType(XmlQueryContext.Lazy);
    String sContainerName = xmlcontGCDB.getName();
    FileObject foContainer = FileUtil.toFileObject(new File(sContainerName));
    sContainerName = foContainer.getNameExt();
    sContainerName = Util.convertFilepathToURI(sContainerName);
    String sQuery = "collection(\"" + sContainerName + "\")/" + GCDBTAG_INDI;
    if(bDebug) DebugOut.println("sQuery: " + sQuery);
    XmlQueryExpression xmlquery = xmlmanGCDB.prepare(sQuery, context);
    XmlResults xmlresults = xmlquery.execute(context);
    XmlDocument xmldoc = xmlmanGCDB.createDocument();
    boolean bRet = xmlresults.next(xmldoc);
    1. When I run it with the container named above with space and with the Util.convertFilepathToURI() call commented out, I get an XmlException executing the XmlManager.prepare() call. Based on this, I thought that you must be requiring percent encoding of spaces. The exception had Error Code 6: Invalid URI format [err:FODC0002], errcode = QUERY_PARSER_ERROR. The debug line displayed as
    sQuery: collection("EEF-PGL10GenAncestors Only.gcdb")/INDI
    2. So, if you uncomment that Util.convertFilepathToURI() call line and run it again, the debug line displays
    sQuery: collection("EEF-PGL10GenAncestors%20Only.gcdb")/INDI
    but that also caused an XmlException with Error Code 17: EEF-PGL10GenAncestors%20Only.gcdb: container file not found, or not a container, errcode = CONTAINER_NOT_FOUND. So, it is not interpreting the space as a %20 correctly.
    3. Finally, if I take the space out of the filename and rerun, the debug line displays
    sQuery: collection("EEF-PGL10GenAncestorsOnly.gcdb")/INDI
    and everything works just fine. Are you using some other way to encode this space in a container name besides what I have tried? I need some help here folks.
    Edward Fairchild
    [email protected]

Maybe you are looking for