✓ not output correctly from DOM parser

Need a small help again.
in my original XMl file, I have an entity ʟ
It represents(ALT 671) a check symbol(a box).
But the output XMl file from my DOMparser represents it as a question mark, which is NOT what I want.
I'm using DOM parser with JAXP API to parse the XML file.
Could you help me why does my parser doesn't output correct character for this particular entity only?
Any suggestion is grately appreciated.
-Srivalli.

Thanks DrClap for your reply.
Here is the statement in my DTD...
<!ENTITY check     "&#10003;">
(I had 671 in the place of 10003, but neither worked!!!!)
This is a statement in input XML...
The foll &check; owing is
This is my Output XML....
The foll ? owing is
Here is the code in my java file where I didnot explicitly specify any output encoding type....
DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();
factory.setValidating(true);
factory.setIgnoringElementContentWhitespace(true);
DocumentBuilder builder=factory.newDocumentBuilder();
currDocument=builder.parse(f);
TransformerFactory tf=TransformerFactory.newInstance();
Transformer t = tf.newTransformer(new StreamSource("transformoutput.xsl"));
t.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, "nmstat.dtd");
FileWriter fileOut = new FileWriter("outputAnno.xml");
t.transform(new DOMSource(document), new StreamResult(fileOut));
This is the code in transformoutput.xsl...
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<xsl:copy-of select="node()"/>
</xsl:template>
</xsl:stylesheet>
Could you help me figuring out the problem.
Thank you very much.
-Srivalli.

Similar Messages

  • Adobe pdf 8.0 not outputting correct page size from publisher 2007

    i have windows vista home premium with microsoft office 2007. microsoft publisher is not outputting the correct page size when converting to pdf. In Word 2007 i have the document size 4.5 x 6, and if i convert with the adobe add in, the new pdf is exactly 4.5 x 6. In publisher i have a postcard size 8 x 5, when i print to pdf or convert using the converter, it sticks the postcard in the center of an 8.5 x 11 page with crop marks. I can't work with this, i need the pdf to output the exact page size as the microsoft publisher document. i've tried changing page sizes in page setup in the publisher print dialog box as well as the advanced settings in pdf. it doesn't make a difference. it always prints on 8.5 x 11 and centers the postcard in the middle of the page. any help is appreciated

    Think of the paper size in publisher (and likely the printer options) as the setting that Publisher is trying to produce when printing. Think of the paper size in the Adobe PDF printer properties as actually putting the proper paper in the printer. If you do not do the latter, you will get the printout properly sized in terms of your setup and printed on 8X11 paper that is put in the printer. They selection of the paper in a printer is not typically an automatic feature of print drivers. One is the sizing issue of the application and the other is the actual paper that is used. If you printed to actual paper, you would actually put in the 8X5 paper or whatever in your printer. If you used 8X11 paper in the printer, then you would likely get the same result you have in the PDF.
    There may be two convert options in Publisher (depending on the version of Publisher). One would be PDF Maker, the Adobe add on. The other would be a convert to PDF provided by MS. The latter started coming with OFFICE 2007. Also, with OFFICE 2007 you needed a newer version of Acrobat to get the Adobe PDF Maker (AA8 I think was a minimum). If you use PDF Maker, then you have to select the printer properties in PDF Maker for the paper.
    I just did a test sample with AA5 (sorry, that is what is on this machine - but I am sure I would get the same result on my other machines). I created a word processor document with a 5X8 dimension and printed to the margins (set to 1 in). I then printed to the Acrobat Distiller printer (the old name for the Adobe PDF printer) after setting the page to a custom 5X8. The end result of the PDF was a PDF that was 5X8 with 1 in margins of my printing as I had selected. I thus printed with a custom page size in my document and matching page size in the printer properties, getting the expected result. However, I am getting inconsistent results when I try with WORD on this machine.
    To be more helpful, I guess I am going to at least have to try my AA7 on my notebook with OFFICE 2003. Those are both behind your version levels, but I would expect the results to be the same. I will also try with my word process that worked out fine here, but did not retain the paper size setting in the driver, when WORD would not allow the size reduction (that is the inconsistency I mentioned!).
    I will report back later. Bill

  • PDF will not print correctly from any app

    I seem to keep on getting the same error everywhere I print on SL (from safari/firefox/preview etc etc)
    It will usually print any lines or logos but miss all text?? I did have the dreaded adobe reader installed but have since removed it?
    I am in urgent need of printing out some manuals for a class so in real trouble, help!

    Where do these PDFs that do not print correctly come from? Are they downloaded from the internet or from email? Or do you create them yourself on your computer? If so, in which program?
    Do some PDF files print correctly, but not others? Did you remove the dreaded Acrobat Reader before this problem developed or after? Did this problem develop only after you ungraded to a certain release of Snow Leopard or has it never worked in SL?
    PDF is wonderful technology, but every so often there can be issues.
    Arch

  • Files Are Not Transferring Correctly from Captivate 4 to 5

    My files from Captivate 4 are not transferring correctly into Captivate 5.  The images and quiz questions are not in the same place. Help!

    This is a bug.
    We all have it.
    Keep CP4 for the old courses, and develop new ones in CP5. That is what I am doing.
    Alternative is to manually adjust everything (don't even get me started on rollovers...)
    Terry

  • Financial Statement hierarchy not extracted correctly from ECC into BW.

    Recently, one of my clients modified a FS hierarchy in production environment by moving some nodes from revenue to expenses, but BW is not picking up the change.
    In ECC via transaction FSE3, one of our Financial Statement hierarchies shows three nodes - (Group Life_, Vehicle Plan only_, and Cost of Removal_) as Expenses. However, the BW extractor still shows these three nodes as Revenue and loads the hierarchy into BW that way as well.
    DataSource is 0GL_ACCOUNT_T011_HIER with field HIENM = AE03. When running RSA3 Extractor Checker in ECC, the displayed data still shows the three nodes in question as Revenue and not correctly as Expenses.
    Found SAP note 1061847 - Ind. For reversing plus/minus signs not extracted correctly. Applied note in ECC development environment, tested the extractor, and checked the load into BW, but the error regarding the nodes still exists after applying the fix.
    Appreciate any suggestions or thoughts from the community.
    Thanks!
    SAP landscape is as follows:
    SAP_BW     700     0009     SAPKW70009     SAP NetWeaver BI 7.0
    SAP_AP     700     0007     SAPKNA7007     SAP Application Platform
    SAP_BASIS     700     SAPKB70010     SAP Basis Component

    Thanks SDNBI. I reviewed the suggested OSS note 1037447, but I am not sure how it applies in my situation. The suggested note seems to address a problem with the display of transfer structure in BW. Our problem seems to be that the extractor on ECC is incorrectly extracting the hierarchy structure. When viewing the data in RSA3 extract checker in ECC, I see the three nodes in question incorrectly positioned in the hierarchy. Thus loaded the same incorrect way into BW. Yet, when I display the hierarchy through transaction FSE2, the three nodes are displayed correctly.

  • Projects first created in Windows are now not publishing correctly from a Mac

    I've been using the Windows version of Captivate for months without issues, putting together a large number of HTML5 courses, non-responsive. Lots of custom javascript via the 'Execute JavaScript' action for smartshapes, etc.
    I just purchased a new Macbook Pro and then purchased a subscription license for Captivate. Now my cptx files that were working fine when opened and published from Windows Cp are very not publishing correctly - the javascript does not execute, etc. Everything *appears* fine within Captivate but I get issues upon preview/publish.
    Thank goodness I have the 30 days to cancel the subscription and get a refund...but before I do that - has anyone else tried switching to a Mac and run into problems with Captivate projects?
    Both machines have 8.01 installed. The only thing I can think of is, after installing 8.0 via the subscription download, I then did the 'Check for updates' and it went and downloaded and installed the 8.01 update. When I did this on Windows I followed the directions on a blog post somewhere (sorry - I forget the name!) that stressed deleting some directories on the machine first before running the update. I assumed the subscription files would be fixed/patched....

    After struggling with this last night I took a look again this morning and narrowed down and corrected the problem. Basically, this is what happened to cause the issue and how I resolved it. Hopefully it helps others in the future.
    Steps
    Create project in Windows version of Cp (I was using version 8.01).
    For my client's requirements, which are quite unique and complex compared to the typical Cp project, custom quiz questions/scoring had to be developed. Since these are HTML5 (non-responsive) courses, and Javascript is the fastest/most efficient way to do this, I used Javascript extensively for quizzes via the 'Execute Javascript' action. So for quiz questions, each answer is simply a smartshape (transparent, with answer text in it) that triggers the 'Execute Javascript' on click. In addition, on many of the quiz slides there are Edge Animate/HTML5 interactions embedded.
    Worked fine on windows upon publish. But when I opened on a new Mac and published, when a question answer was clicked nothing would happen.
    Turns out the problem seems to be with the text in the Javascript window. I think it somehow gets corrupted, though it looks fine. I had to literally delete the javascript, save it, and then copy it back in. Once I did that, it works.
    I've invested too much time in this project so far, so don't want to risk any more major issues popping up like this, so I switched back to Windows and canceled my subscription this morning. Fortunately I have a license from my employer for Windows and will just use that with Boot Camp.

  • Timestamp datatype not output correctly in table export

    When using the data export from table view timestamp datatype is not handled correctly. It shows as oracle.sql.TIMESTAMP@14c0761.
    Works fine from SQL Explorer view though.

    Im using the same build. 1.0.0.15.27.
    You can try any export option. I tried SQL Insert.
    If you right click from the data grid (SQL Worksheet or Table view it works fine)
    In the table view, if you go to Actions -> Export -> SQL Insert then it doesn't.

  • New Text File Action Does Not Output Correctly (Corrupts)

    I posted this in here by accident. I reposted it in the 10.5 Automator forum...
    I have a simple automator script that uses "Get Specified Text" that contains some arbitrary shell script text, and I pass that to "New Text File" which has the location selected from a variable called "Temporary path" of value "/tmp". The output of 'New Text File" will not contain the text I specified. Here are steps to recreate:
    New automator script
    Get specified text action with the following text:
    #!/bin/sh
    cd "`dirname \"$0\"`"
    if [ true ]; then
    echo 1
    fi
    New variable called "Temporary path" with the value "/tmp"
    New text file action
    --- Save as: test.txt
    --- Where: "Temporary path" (drag Temporary path to the drop down box)
    --- Replace existing file: checked
    I run the script. New text file result shows "/private/tmp/test.txt". Then from the "Terminal" I try to view it ("cat /tmp/test.txt") and the contents are:
    if [ true ]; then\"`"
    fi echo 1
    So the specified text was corrupted. If I create the new file in Desktop or Documents (tried those) it works correctly. What is so special about /tmp? Is there a reason why this shouldn't work?
    Regards,
    John
    Message was edited by: techiejohn

    Alas, my example does work... In hopes of narrowing the problem I tried to narrow the text.
    Anyway below is the full "script" that I'm trying to write to the file that does not work, although if you copy it from here directly, it does work. So to reproduce, I can copy it from here to TextWrangler (that will fix the extra blank lines) then from TextWranger to Automator and the issues remains. The result of "Get specified text" looks correct, but the output still is not.
    <pre>
    #!/bin/bash
    cd "`dirname \"$0\"`"
    clear
    \# display output from a previous run
    if \[ -e "$0".txt \]; then
    cat "$0".txt
    /bin/echo -n "Run again? "
    read run
    if \[ "$run" = "n" -o "$run" = "N" -o "$run" = "no" -o "$run" = "No" -o "$run" = "NO" \]; then
    run=""
    else
    run="Yes"
    fi
    else
    run="Yes"
    fi
    if \[ "$run" \]; then
    date
    echo "Running unison for $USER..."
    if \[ -e "/Users/$USER" -a -e "/Volumes/$USER" \]; then
    /opt/local/bin/unison \
    "/Users/$USER" "/Volumes/$USER" \
    -auto \
    -rsrc false \
    -terse \
    -logfile /dev/null \
    -ignore "Name .DS_Store" \
    -ignore "Name .Spotlight*" \
    -path "Desktop" \
    -path "Documents" \
    -path "Downloads" \
    "$@"
    exit=$?
    case "$exit" in
    0) echo "Successful synchronization; everything is up-to-date now.";;
    1) echo "Some files were skipped, but all file transfers were successful.";;
    2) echo "Non-fatal failures occurred during file transfer.";;
    3) echo "A fatal error occurred, or the execution was interrupted.";;
    esac
    else
    echo "/Users/$USER or /Volumes/$USER does not exist."
    exit=255
    fi
    else
    exit=0
    fi
    \# wait for error acknowledgement
    if \[ "$TERM" -a "$TERM" != "dumb" -a "$exit" -gt 0 \]; then
    /bin/echo -n "Error #$exit; press enter or return to continue: "
    read
    fi
    \# close the terminal window
    termpid=`/opt/local/bin/pstree -p $PPID | grep Terminal.app | grep -v grep | awk '{print $2}'`
    if \[ "$termpid" \]; then
    kill "$termpid"
    fi
    exit $exit
    </pre>

  • IE 11: Javascript files are not loaded correctly from cache?

    Since installing Windows 8.1, I have been experiencing issues with script loading in IE 11: When the server responds with "304 Not Modified" in response to a script request, bad things happen. Specifically, I encounter script errors that would
    normally be caused by a missing script reference or having references in the wrong order (e.g. "Unable to get property 'foo' of undefined or null reference"). Doing a force-refresh (i.e. Ctrl+F5) corrects the issue until the next page load.
    Based on what I see in the IE 11 developer tools, it looks like the scripts are loaded correctly. I can open them in the Debugger view and the content appears to be correct. Perhaps IE is just not loading them in the correct order in this scenario?
    I noticed this problem myself and then someone else (who has also recently installed Windows 8.1) informed me that it appears he is experiencing exactly the same issue on a different site.

    I'm fairly certain this issue represents a bug in IE 11. The same problem(s) do not occur in IE 9 or IE 10. The same problems occur on unrelated websites accessed from separate machines. Doing a force-refresh (Ctrl+F5) always fixes the issue.
    I took your advice about opening the console to look for error messages during page load. When loading normally (i.e. not doing a force-refresh), the console shows the following:
    HTML1300: Navigation occurred.
    File: TimeEntry
    DOM7011: The code on this page disabled back and forward caching. For more information, see: http://go.microsoft.com/fwlink/?LinkID=291337
    File: Dashboard
    SCRIPT70: Permission denied
    File: modernizr-2.5.3.js, Line: 468, Column: 9
    SCRIPT70: Permission denied
    File: jquery-ui-1.10.0.js, Line: 252, Column: 1
    SCRIPT70: Permission denied
    File: knockout-2.2.1.js, Line: 48, Column: 5
    SCRIPT5007: Unable to get property 'extend' of undefined or null reference
    File: knockout.validation.js, Line: 30, Column: 5
    When loading the page via a force-refresh, only the 'Navigation occurred.' message is displayed. It does not make sense that IE would apply a more restrictive security policy to scripts loaded from cache vs. scripts loaded directly from their original location,
    yet that appears to be what is happening.
    Post questions about html, css and scripting for website development to the IE Web Development forum.....WITH A LINK TO YOUR WEBSITE OR A MASHUP THAT SHOWS THE ISSUE...
    looks like you have a sandboxed iframe on your page.
    the first step in troubleshooting IE issues is to test in noAddons mode.
    Rob^_^

  • Boookmarks folders do not display correctly from toolbar

    The folders in my bookmarks toolbar only display as a small white square when I click on them. Even when I try to display them from the Bookmarks menu. They are present because I can right click and choose "open all in tabs" and they will all open but I can't select individually or open a folder to see sub folders. I have tried deleting places.sqllite and localstore.rdf but that doesn't help. Deleting Places.sqllite allowed me to see one folder's contents but no sub folders. Then when I closed and reopened FF even that folder view was corrupt. I'm using FF4.01 on a windows 7 x64 home premium desktop.

    Not sure what happened but somewhere between version 7 and version 8 this corrected itself.

  • Sync is not working correctly from .jpg to .nef

    I am working on editing a large collection of photos, maybe 150 or 160. These are photographs of flat art taken using a flat-art photography stand (camera points directly at floor, art piece is on larger white background). I have two versions of the exact same image, one .jpeg and one .nef. I am editing them one at a time, fixing the white balance, any accidental tilt, and cropping them. Again, the two images are exactly the same: size, angle, etc. What I have been doing is editing the .jpg and then highlighting the .nef version and syncing the two. This has been working perfectly, but something has changed and I don't know what I did to cause it. When I sync the changes I have made to the .jpg, the crop does not line up correctly on the .nef image. Instead of the image being perfectly centered and cropped, it is off to the side, revealing the white background and cutting off the image. Why is this happening? How can I fix it?

    What dj wrote regarding crops is equally true for all and any edits you do to the NEF, including any you paste from the jpg. Those edits exist only in the catalog  and additionally in an XMP file if you opt for that. Thus the modifications to the NEF will be viewable only in your LR catalog or by somebody else (with the accompanying XMP) in Adobe software.
    Also, you should consider that color-critical edits cannot simply be pasted from a gamma corrected image rendered in a narrow  RGB space to linear and wide gamut image data and be the same.  If it's a jpg from the camera it is in either sRGB or Adobe RGB, narrower gamuts than LR's linear ProPhoto RGB and colors have already been changed in the camera by both the Rendering Intent and the Tonal Response Curve. Moreover, the camera's jpg has been built on a Nikon camera profile while both viewing within LR and exports from it are on the basis of an Adobe profile that may seek to emulate the maker's profile but will never be the same.
    You say you do WB adjustments to the jpg. How are +/- tweaks in a limited range applied on top of the camera's WB supposed to translate to WB for the NEF when even the UI (Temperature and Tint) is different?
    I have had many years experience photographing paintings for show catalogs and your method seems fundamentally flawed to me.

  • Merged files not opening correctly from TOC

    Hi,
    We are having issues with one of our merged .chms. It is a
    small .chm with one topic and 8 merged TOCs. When this .chm file is
    compiled, the TOC works fine and all the TOC topics open and the
    topics display correctly in the right-hand frame.
    However, when we merge this .chm with our main help, we get
    the following error message when we click on a TOC entry:
    "The window name "Main" passed to HH_GET_WIN_TYPE has not
    been specified"
    We click OK to continue and the topic opens but in a new
    window as its own .chm, not in the right-hand frame like it should.
    And most of the time the new window does not have the correct
    title, it is picking up the title of TOC below or above it, or the
    one that was opened previously.
    Hope this is making sense, it is hard to explain without
    images...
    I have spent hours trying to figure this one out and was
    originally getting the same error in the stand alone .chm, but I
    think (fingers crossed) that I have fixed this. One of the merged
    TOC projects was corrupting everyhting else, but we have recreated
    that project from scratch, and now it all works fine.
    It is just when the .chm is merged with the main help.
    Is it because we have a merged TOC within a merged TOC?
    Thanks

    Hi Em0606,
    What version of RoboHelp are you using? There was a problem
    in RH X5.0.0 that was fixed by the X5.0.1 update. See the following
    link (scroll down to RoboHelp Office Updates):
    http://www.adobe.com/support/robohelp/downloads.html
    If that's got nothing to do with it, I shall bow out and let
    one of the experts offer a solution.
    Anne

  • Reports on 11 x 17 paper are not outputting correctly, worked 2 days ago no changes made

    Post Author: sgrot
    CA Forum: crystalreports.com
    Reports that were written to output to 11x17 paper are no longer outputting to the browser window or .pdf correctly. These reports were working fine until 2 days ago. No changes have been made to the source files and the result is the same across multiple reports.

    Post Author: sgrot
    CA Forum: crystalreports.com
    These reports are scheduled. I don't believe it is new data messing up the alignment for two reasons:
    1. I can run the same report with the same data in Crystal Reports XI and the formatting is correct.
    2. All of my 11 x 17 reports were affected and they are not reporting the same data.
    The problem, like most I experience with CR.com went away a day or two after I posted the issue.

  • BI Publisher PDF reports not displaying correctly from EPPM 8.2

    Hi,
    I have setup EPPM to run BI Publisher reports as specified in the documentation. I can see all the reports correctly and can run the reports ok after specifying the reqd parameters. However, when the report completes and tries to open the PDF output in Acrobat, the screen flashes and no output is displayed. This is when running P6 within Internet Explorer. If I run P6 in Firefox, the PDF output opens correctly.
    I presume this is due to an IE setting or because the add-ons aren't configured correctly. Has anyone had the same sort of issue ?, and if so, how did you fix it ?.
    Thanks
    Nik

    Hi Khaja,
    Font mapping is done using xdo.cfg file right ? If yes then yeah I have done it. But the barcodes are not displaying. Infact to display special fonts such as chinese,russian etc I have just pasted the corresponding ttf files under java home and not made any changes to xdo.cfg. But still the specail fonts are displayed properly.Problem is in displaying barcode fonts.
    Thanks,
    Kavitha

  • Playlists not syncing correctly from iTunes to iPhone4

    iTunes is not syncing my playlists consistently. As it is difficult to describe exactly what is going wrong, I'll also list the things that I did to test the issue. I am currently using itunes v10.6.3.25 on Win7 64-bit and iOS v5.1.1 and iTunes Match is not enabled. When I plug my iPhone into my PC to sync, everything appear to go normally, I am not getting any errors. When I look at the contents of my iPhone in iTunes (under the Devices category), it appears to match my iTunes content. However, when I use the Music app on my phone, the playlists/song have not been synced. Here are my attempts to figure out what's going on:
    TEST: deleted playlists on iphone
    RESULT: playlist deleted on itunes after syncing
    TEST: deleted playlists in itunes
    RESULT: playlist deleted from iphone
    TEST: changed name of playlist in itunes
    RESULT: removed *some* songs from playlist on iphone (but not in itunes)
    TEST: added songs back to iphone playlist
    RESULT: after syncing, songs added were removed from both itunes and iphone playlist
    TEST: added songs back to iTunes playlist
    RESULT: did not sync songs to iPhone playlist
    TEST: added music to iTunes library
    RESULT: music successfully synced to iPhone
    TEST: added music to a smart playlist
    RESULT: smart playlist synced to iPhone successfully
    TEST: uninstalled and reinstalled iTunes
    RESULT: issue persists
    TEST: rebooted iPhone
    RESULT: issue persists

    I have just started to have trouble playing my playlists on the iPhone. It started to shuffle them and when I turned shuffle off, it would only play one song over and over again.  You have to open the iPod and manually advance to the next song.  That is obviously unsatifactory.  I downloaded the update on the iTunes software today.  That did not correct the problem.  I also restored the settings on the phone.  It wtill will not play a playlist in the order I have it.  There is some problem here.  I would also be happy to hear a reply on this issue. 

Maybe you are looking for

  • Office 2013 hangs when saving files to local profile locations on Windows 2012 server

    We installed Office 2013 a few weeks ago instead of Office 2003 on a Windows 2012 standard terminal server. We installed the last updates and Office is up-to-date now, but we experience problems with saving word, excel and powerpoint documents when w

  • Trying to updgrade iphoto 4.0.3

    I am trying to revitalize an old MAC for use and want to put sme photos on it that have been upgrades to Version 6. I have IPhoto 4.0.3 installed and when I try to upgrade to 5 or 6 versions the installer program says that it can not find an eligible

  • Photoshop Elements 12 Editor Crashes When Editing Raw

    Hi -- Consistently when I'm editing RAW files (Canon T2) the Elements Editor 12 crashes.  To repro: 1) I'll select 5-8 photos in the Organizer. 2) Right click and "Edit with PS Editor" 3) RAW importer/editor (not sure if that's the official name, but

  • Adobe Reader error

    Using Windows 7. When trying to open any PDF I get an "Adobe Reader has encountered a problem and needs to close" error. I uninstalled Reader and reinstalled the most current version from the Adobe website. After reinstalling, I get the same error me

  • Deleting facebook search history in Safari

    I'm not able to delete my facebook search history in Safari.  Can anyone help?  I've tried clearing history, cache, cookies, etc. Thank you!