Why MyHandler cannot work?about xml parser.

Help me !
It print "OK" and then no other message!
MyHandler.java
import org.xml.sax.helpers.*;
import org.xml.sax.*;
public class MyHandler extends DefaultHandler {
private boolean bW = false;
private StringBuffer content = new StringBuffer();
public void startElement(String name,AttributeList atts) throws SAXException {
if(name.equals("wait-time")) {
bW = true;
public void characters(char[] ch, int start, int length) {
if(bW == true) content.append(ch,start,length);
public void endElement(String name,AttributeList atts) throws SAXException {
if(name.equals("wait-time")) {
bW = false;
public String getWaitTime() {
return content.toString();
Untitled3.java
import org.xml.sax.helpers.*;
import javax.xml.parsers.*;
import org.xml.sax.*;
public class Untitled3 {
public Untitled3() {
public static void main(String[] args) {
Untitled3 untitled31 = new Untitled3();
untitled31.parser();
private void parser() {
try {
MyHandler myHandler = new MyHandler();
SAXParserFactory factory = SAXParserFactory.newInstance();
SAXParser saxParser = factory.newSAXParser();
System.out.println("OK");
saxParser.parse("c:/web.xml",myHandler);
catch (Exception ee) {
System.out.println("Error!");
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>bookmark</servlet-name>
<servlet-class>agent.bookmark.BookMark</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>bookmark</servlet-name>
<url-pattern>/bookmark</url-pattern>
</servlet-mapping>
<wait-time>30</wait-time>
</web-app>
thanks!

Could you do a printstacktrace to get a trace dump ?
amlan

Similar Messages

  • Why MyHandler cannot work?

    Help me !
    It print "OK" and then no other message!
    MyHandler.java
    import org.xml.sax.helpers.*;
    import org.xml.sax.*;
    public class MyHandler extends DefaultHandler {
    private boolean bW = false;
    private StringBuffer content = new StringBuffer();
    public void startElement(String name,AttributeList atts) throws SAXException {
    if(name.equals("wait-time")) {
    bW = true;
    public void characters(char[] ch, int start, int length) {
    if(bW == true) content.append(ch,start,length);
    public void endElement(String name,AttributeList atts) throws SAXException {
    if(name.equals("wait-time")) {
    bW = false;
    public String getWaitTime() {
    return content.toString();
    Untitled3.java
    import org.xml.sax.helpers.*;
    import javax.xml.parsers.*;
    import org.xml.sax.*;
    public class Untitled3 {
    public Untitled3() {
    public static void main(String[] args) {
    Untitled3 untitled31 = new Untitled3();
    untitled31.parser();
    private void parser() {
    try {
    MyHandler myHandler = new MyHandler();
    SAXParserFactory factory = SAXParserFactory.newInstance();
    SAXParser saxParser = factory.newSAXParser();
    System.out.println("OK");
    saxParser.parse("c:/web.xml",myHandler);
    catch (Exception ee) {
    System.out.println("Error!");
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <servlet>
    <servlet-name>bookmark</servlet-name>
    <servlet-class>agent.bookmark.BookMark</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>bookmark</servlet-name>
    <url-pattern>/bookmark</url-pattern>
    </servlet-mapping>
    <wait-time>30</wait-time>
    </web-app>
    thanks!

    The only other possibility would be for it to print "Error!", and that would only happen if the parsing threw an exception. Since you do not see that, it means that the parse was successful. Why is this a problem?

  • Why 3G cannot work if i didn't power off my iphone 4s?

    why my maxis 3G cannot work if i didn't power off my iphone 4s?

    You can use Assistive Touch:
    http://support.apple.com/kb/HT5587
    Once Assistive Touch is turned on:
    Tap the dark circle to open the Assistive Touch menu, then tap "Device" and tap and hold the Lock Screen icon. This will bring up the iPhone's Power-Off slider.

  • Dreamweaver stopped working. XML parsing fatal error: Invalid document structure, line1  Tried reloading DW. Didn't work.

    Dreamweaver (CS5) stopped working.  The error message says - XML parsing fatal error: Invalid document structure, line: 1, I tried to reload DW. No change. I also tried to reset the computer to an earlier date before I reloaded. Also didn't work. Can anybody shed some light?

    The first thing to try is Deleting Corrupted Cache.  Be sure to turn on Hidden Files & Folders in your file manager (Win Explorer or Mac Finder).
    http://forums.adobe.com/thread/494811
    If that doesn't help, try Restore Preferences
    http://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs4-cs5.html
    If all else fails, use the CC Cleaner Tools below to wipe DW from your system, followed by a software re-install.
    http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html
    Keep us posted on your results.
    Nancy O.

  • Why I cannot to import .XML exported from DaVinci Resolve or Premiere?

    Both have options to export to FCPX. But it don't work. When I go to File -> Import -> XML in FCPX, the files .XML exported from DaVinci or Premiere, appear hide or unable to select.

    Hello Neil,
    Thanks for the response. I understand about the Speedgrade / Premiere thing. What we are trying to do is essentially the reverse. I use DaVinci Resolve, my client is using Premiere to edit. They want me to do essentially a best light pass on the footage without rendering it out. I then would export a CDL / EDL from Resolve and they would load that into Premiere or Speedgrade whichever would then display the simple color grade using the Adobe color tools. The CDL generated from Resolve is a cross platform basic color information inside an EDL. Anyway I can't find a way for Premiere / Speedgrade to read this info yet. Supposedly It will in Final Cut X, although I haven't tried it since I don't have Final Cut X on my computer.
    John

  • Why servlet cannot work?

    I change from using tomcat to Apache. And I have the same problem when I first install tomcat. the error message is "package javax.servlet does not exist"
    I have already set the classpath as
    C:\Program Files\Apache JServ 1.1.2\ApacheJServ.jar;
    C:\JSDK2.0\lib\jsdk.jar;C:\jdk1.3.1_02;
    C:\JSDK2.0\servlet.jar
    and the path as
    %SystemRoot%\system32;%SystemRoot%;
    %SystemRoot%\System32\Wbem;
    C:\jdk1.3.1_02\bin;%CLASSPATH%;
    C:\JSDK2.0\bin;%PATH%
    but still doesn't work. and i have also installed apache jserv. however i am able to view the servlet file,"IsItWorking" in the browser. but when i place my servlets into the same file, it doesn't work.
    I check the logs file and receive the following error
    (ERROR) ajp12: Servlet Error: ClassNotFoundException: HelloWorldServlet
    and
    ApacheJServ/1.1.2: Exception creating the server socket: java.net.BindException: Address in use: JVM_Bind
    can someone with a kind soul please help me out...
    i'm really stuck!
    thx in advance!

    win2000 + apache2.0.44 + tomcat5.0(servlet2.4) + j2sdk1.4.1(java.exe)
    QUESTION? is to run servlet pages i need also to install
    ApacheJServ-1.1.2-2.exe latest but wants jsdk2.0
    jsdk2.0.exe(jsdk.jar) n 2.1 is obsolet so j2sdkee.exe(is servlet2.4, various jar inside the installation but no jsdk.jar, so fucking sun)
    now C:\Programmi\Apache JServ 1.1.2\(fucking sun)miss of 4 files
    Win9xConHook.dll
    ApacheCore.dll
    xmlparse.dll
    xmltok.dll
    that can be found in apache old release not 2.0.44
    try to start and load jserv_module but still return
    ApacheModuleJServ.dll is garbled
    is garbled oooh shit give me the right dll sun or i'll start crazy
    so for the last time fucking sun!
    reply at
    [email protected]

  • Why JSpinner cannot work?

    I want to use JSpinner in my frame, and my code is followig two lines:
      SpinnerNumberModel model = new SpinnerNumberModel();
      private JSpinner jsp = new JSpinner(model);but it give me some error message:
    java.lang.IllegalAccessError: class javax.swing.JFormattedTextField$CommitAction cannot access its superclass javax.swing.JTextField$NotifyAction
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
         at javax.swing.JFormattedTextField.<clinit>(JFormattedTextField.java:157)
         at javax.swing.JSpinner$DefaultEditor.<init>(JSpinner.java:583)
         at javax.swing.JSpinner$NumberEditor.<init>(JSpinner.java:1139)
         at javax.swing.JSpinner$NumberEditor.<init>(JSpinner.java:1090)
         at javax.swing.JSpinner.createEditor(JSpinner.java:189)
         at javax.swing.JSpinner.<init>(JSpinner.java:96)
         at test.Frame7.<init>(Frame7.java:40)
         at test.Application4.<init>(Application4.java:20)
         at test.Application4.main(Application4.java:49)

    This is error message in JBuilder7.

  • PowerShell code not working import XML to SharePoint list

     
    All hi, I don't understand why doesn't work? XML file from here -
    http://www.cbr.ru/scripts/XML_daily.asp?date_req=23/01/2015
    if(!(Get-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction:SilentlyContinue))
    Add-PSSnapin Microsoft.SharePoint.Powershell
    #Set these two variables accordingly
    $WebURL = “http://sharepoint/Test”
    $ListName = "Test"
    $XMLFilePath = "C:\Test\XML\XML_daily_asp.xml"
    #Get the Web
    $web = Get-SPWeb $WebURL
    #Get the List
    $ProjectList = $web.Lists[$ListName]
    #import xml file
    $ProjectXmlFile = Get-Content $XMLFilePath
    foreach ($XMLProject in $ProjectXmlFile)
    $NewProject = $ProjectList.Items.Add()
    $NewProject["Title"] = $XMLProject.Value
    $NewProject["NumCode"] = $XMLProject.NumCode
    $NewProject["CharCode"] = $XMLProject.CharCode
    $NewProject["Nominal"] = $XMLProject.Nominal
    $NewProject["Name"] = $XMLProject.Name
    $NewProject["Value"] = $XMLProject.Value
    $NewProject.Update()
    Write-Host "Has been Added to External Projects list!"

    I understood, my error was that it is necessary to add (.ValCurs.Valute) to $ProjectXmlFile.ValCurs.Valute, and also surely to specify an ID (i.e. Valute ID)
    This' working code:
    Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
    $WebURL = "http://sharepoint/Test"
    $ListName = "Test"
    $XMLFilePath = "C:\Test\XML_daily_asp.xml"
    $web = Get-SPWeb $WebURL
    #Get the List
    $ProjectList = $web.Lists[$ListName]
    #import xml file
    [xml]$ProjectXmlFile = Get-Content $XMLFilePath
    foreach ($XMLProject in $ProjectXmlFile.ValCurs.Valute)
    $NewProject = $ProjectList.Items.Add()
    $NewProject["Title"] = $XMLProject.id
    $NewProject["NumCode"] = $XMLProject.NumCode
    #Set the People Picker Field
    $NewProject["CharCode"] = $XMLProject.CharCode
    $NewProject["Nominal"] = $XMLProject.Nominal
    $NewProject["Name"] = $XMLProject.Name
    $NewProject["Value"] = $XMLProject.Value
    $NewProject.Update()
    Write-Host "Project $($XMLProject.id) has been Added to External Projects list!"

  • Why I cannot download the muscle premium in my ipad

    Why I cannot download  about muscle premium application in my iPad.i have 3000yen in my I tunes store

    Judging from your username I assume that you are in Hungary ? If so then it doesn't look like that app is available in your country, which may be due to the developer/licenseholder not having made it available to Apple to put in your store or potentially local laws. You can try requesting it here http://www.apple.com/feedback/itunes.html

  • Swapping XML Parser and XSLT to Xalan 2.7.0 - Not Working (OC4J 10.1.3)

    Hi-
    I'm trying to use the latest Xercies/Xalan classes in OC4J 10.1.3 as described in the How-To swap XML Parsers document:
    http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/how-to-swapxmlparser/doc/readme.html
    What I can see happening is that the oracle.xml shared library is successfully 'turned off', but the xalan libraries are not added. Instead, the default xml classes that are distributed with the JDK become visible. For instance, using a slightly modified version of the index.jsp page from the how-to, I get this result:
    ------ Output from JSP page ----------------
    TransformerFactory Instance: org.apache.xalan.processor.TransformerFactoryImpl
    Transformer Instance: org.apache.xalan.transformer.TransformerIdentityImpl
    Transformer Version: Xalan Java 2.4.1 (!!)
    What I expect is for that last line to say version 2.7.0, which is the version of the xalan.jar included in my shared library (code to add that line to the how-to shown below).
    I suspect what is happening is that the class loader is simply not letting a shared library override a system library - to do that you probably need to place the jar files in system endorsed directory.
    Has anyone gotten this how-to to work - actually replacing the XML parser/transform classes with the latest Xalan classes? Are you sure it is seeing the current version you placed in the shared library?
    Thanks,
    Eric Everman
    ---- My modified getXSLTDetails() method in the index.jsp page of the how-to -------
    <!-- Additional Import -->
    <%@ page import="org.apache.xalan.Version" %>
    public static String getXSLTDetails()
    Transformer transformer=null;
    TransformerFactory transformerfactory = TransformerFactory.newInstance();
         Version ver = null;
         String br = "<" + "br" + ">"; //otherwise the otn forum chocks on the break.
    try
    transformer = transformerfactory.newTransformer();
              ver = (Version) transformer.getClass().forName("org.apache.xalan.Version").newInstance();
              String ret_val =
                   "TransformerFactory Instance: "+transformerfactory.getClass().getName() + br +
                   "Transformer Instance: "+transformer.getClass().getName() + br;
              if (ver != null) {
                   ret_val = ret_val + "Transformer Version: " + ver.getVersion() + br;
              } else {
                   ret_val = ret_val + "Transformer Version not Available" + br;
              return ret_val;
    catch (Exception e)
    e.printStackTrace();
    return e.getMessage();
    }--------------------------------------------------------------------

    Steve - Thanks for responding on this.
    The Xalan SQL extension is built into Xalan. The most painless way to try it out is to run it via JEdit: www.jedit.org
    JEdit a OS Java application with a fairly painless install process (I'm assuming you already have a current JRE installed). Once its installed, you'll need to install the XSLT plugin - in JEdit goto Plugins | Plugin Manager | Install and pick the XSLT plugin. You'll need the Oracle JDBC classes on your classpath - this can be done by copying the oracle_jdbc4.jar into the [JEdit install directory]/jars directory.
    Restart to load that jar and you should be all set.
    I included a sample XSLT page at the bottom of this post that is somewhat of a template transform for the SQL extension - its more complicated then it needs to be, but it does some nice things with the results of the query. Save it as a file and make the appropriate changes to the 'datasource' parameter near the top of the file.
    Then in JEdit, open the file and make sure the XSLT plugin is visible (Plugins | XSLT | XSLT Processor Toggle - or alternately dock it in the window via global prefs). In the XSLT plugin: Allow the current buffer to be used as the source, Add that same file as a stylesheet via the '+' button, and pick a result file at the bottom. Then click the 'Transform XML' button.
    Troubleshooting: I seem to remember having some classpath errors when I tried this on windows, but others have had it work w/o issues. I do remeber that the XSLT plugin had a popup window that gave a pretty good explaintion of the problem, if it occurs. Also, for some reason the XSLT plugin will not create a new file for the output, so its often best to create a file first, then choose it as the output. Of course, you can always run a transformation from the command line or w/in an applicatoin. Full docs on the Xalan SQL extension can be found at: http://xml.apache.org/xalan-j/extensionslib.html#sql
    Here is my sample XSLT transform using the SQL extension:
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
              xmlns:sql="http://xml.apache.org/xalan/sql"
              xmlns:str="http://exslt.org/strings"
              xmlns:xalan="http://xml.apache.org/xalan"
              extension-element-prefixes="sql str xalan">
         <xsl:output indent="yes"/>
         <xsl:param name="driver">oracle.jdbc.OracleDriver</xsl:param>
         <xsl:param name="datasource">jdbc:oracle:thin:jqpublic/jqpublic@server_name:1521:dbname</xsl:param>
         <xsl:param name="jndiDatasource"><!-- jndi source for production use w/in enterprise environment --></xsl:param>
         <xsl:param name="debug">true</xsl:param>
         <xsl:variable name="connection" select="sql:new()"/>
         <xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
         <xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'"/>
         <!--
              The query:  You could pass parameters in to this query to build a where clause, but here is a simple example.
              Also, its nice to wrap the query with a max row number to prevent huge results.
         -->
         <xsl:param name="query">
         select * from (
      SELECT
              'One' FIELD_1,
              'Two' FIELD_2
         FROM DUAL
         ) where rownum < 100
         </xsl:param>
         <!-- Essentially, create a XConnection object -->
         <xsl:variable name="connection" select="sql:new()"/>
         <xsl:template match="/">
        <xsl:choose><!-- Connect using JNDI -->
          <xsl:when test="$jndiDatasource != ''">
            <xsl:if test="not(sql:connect($connection, $jndiDatasource))">
              <xsl:message>Failed to connect to db via jndi connection</xsl:message>
              <xsl:comment>Failed to connect to db via jndi connection</xsl:comment>
              <xsl:if test="$debug = 'true'">
                <xsl:copy-of select="sql:getError($connection)/ext-error"/>
              </xsl:if>
            </xsl:if>
          </xsl:when>
          <xsl:otherwise><!-- Connect using connection string -->
            <xsl:if test="not(sql:connect($connection, $driver, $datasource))">
              <xsl:message>Failed to connect to db via driver/url connection</xsl:message>
              <xsl:comment>Failed to connect to db via driver/url connection</xsl:comment>
              <xsl:if test="$debug = 'true'">
                <xsl:copy-of select="sql:getError($connection)/ext-error"/>
              </xsl:if>
            </xsl:if>
          </xsl:otherwise>
        </xsl:choose>
              <!--
              The results of the query.  The rowset is brought back in 'streaming' mode,
              so its not possible to ask it for the number of rows, or to check for zero
              rows.  There is a switch to disable streaming mode, but this requires all
              rows to be brought into memory.
              -->
              <xsl:variable name="table" select="sql:query($connection, $query)"/>
              <xsl:if test="not($table)">
                   <xsl:message>Error in Query</xsl:message>
                   <xsl:copy-of select="sql:getError($connection)/ext-error"/>
              </xsl:if>
              <page>
                   <!-- Your xalan environment -->
                   <xsl:copy-of select="xalan:checkEnvironment()"/>
                   <!-- Build a bunch of metadata about the rows -->
                   <meta>
                        <cols>
                             <xsl:apply-templates select="$table/sql/metadata/column-header"/>
                        </cols>
                   </meta>
                   <rowset>
                        <!--
                             With streaming results, you must use the apply-temmplates contruct,
                             not for-each, since for-each seems to attempt to count the rows, which
                             returns zero.
                        -->
                        <xsl:apply-templates select="$table/sql/row-set"/>
                   </rowset>
              </page>
              <xsl:value-of select="sql:close($connection)"/><!-- Always close -->
         </xsl:template>
         <xsl:template match="row">
              <row>
                   <xsl:apply-templates select="col"/>
              </row>
         </xsl:template>
         <xsl:template match="column-header">
              <col>
                   <xsl:attribute name="type">
                        <xsl:value-of select="@column-typename"/>
                   </xsl:attribute>
                   <xsl:attribute name="display-name">
                        <xsl:call-template name="create-display-name"/>
                   </xsl:attribute>
                   <xsl:value-of select="@column-name"/>
              </col>
         </xsl:template>
         <!-- Convert column names to proper caps: MY_FIELD becomes My Field -->
         <xsl:template name="create-display-name">
              <xsl:variable name="col-name">
                   <xsl:for-each select="str:tokenize(@column-name, '_')">
                        <xsl:value-of
                             select="concat(translate(substring(., 1, 1), $lowercase, $uppercase), translate(substring(.,2), $uppercase, $lowercase), ' ')"/>
                   </xsl:for-each>
              </xsl:variable>
              <xsl:value-of select="substring($col-name, 1, string-length($col-name) - 1)"/>
         </xsl:template>
         <!-- Creates data columns named 'col' with a column-name attribute -->
         <xsl:template match="col">
              <col>
                   <xsl:attribute name="column-name"><xsl:value-of select="@column-name"/></xsl:attribute>
                   <xsl:value-of select="."/>
              </col>
         </xsl:template>
    </xsl:stylesheet>

  • XML parsing failed - Works in Oracle Developer fails in SQLplus

    Hello,
    I am trying to figure out what could possibly be causing my XML parsing to fail from sqlplus. Basically the exact same sql script fails with the following error when run from sqlplus but works fine in Oracle Developer.
    Now I have read a number of posts talking about the NLS_Lang and characterset issues. But these are all running on the same machine.
    Error Message Received:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00222: error received from SAX callback function
    ORA-06512: at "SYS.DBMS_XMLSTORE", line 78
    ORA-06512: at line 53
    Exact SQL Script
    DECLARE
    insCtx DBMS_XMLStore.ctxType;
    rows NUMBER;
    xmldoc CLOB :=
    '<DepotData DepotCode="B106">
    <tblPoint_of_Call>
    <DEPOTCODE>B106</DEPOTCODE>
    <MASTERKEY>2077</MASTERKEY>
    <ADDR_ID>45286159</ADDR_ID>
    <ADDR_MAIL_ID>45286160</ADDR_MAIL_ID>
    <STREETBLOCK_KEY>45</STREETBLOCK_KEY>
    <PC_ID>19603417</PC_ID>
    <ST_ID>40034414</ST_ID>
    <BUILDING_KEY>0</BUILDING_KEY>
    <ADDR_NUM>505</ADDR_NUM>
    <POCTYPE>154</POCTYPE>
    <RECEPTACLETYPE>964</RECEPTACLETYPE>
    <TOTALPOCS>1</TOTALPOCS>
    <TOTALPOCSOCCUPIED>1</TOTALPOCSOCCUPIED>
    <TOTALADMAIL>1</TOTALADMAIL>
    <OLD038POC>0</OLD038POC>
    <OCCUPIED>1</OCCUPIED>
    <ADMAIL>1</ADMAIL>
    <BAGGER>0</BAGGER>
    <SORTED>1</SORTED>
    <DELIVERED>1</DELIVERED>
    <AMOBLIGATORY>0</AMOBLIGATORY>
    <POCICANDIDATE>0</POCICANDIDATE>
    <DELIVERYSEQUENCE>10</DELIVERYSEQUENCE>
    <NUMSEPARATIONS>0.50</NUMSEPARATIONS>
    <SEPSGROUPID>0</SEPSGROUPID>
    <DELETED>0</DELETED>
    <CARDID>0</CARDID>
    <CARD>0</CARD>
    <FORCECARD>0</FORCECARD>
    <DNC>0</DNC>
    <PRINTED>0</PRINTED>
    <A12CARD>0</A12CARD>
    <EXTRACARDS>0</EXTRACARDS>
    <DSOUPDATECODE>0</DSOUPDATECODE>
    <TRANSACTION_TYPE>0</TRANSACTION_TYPE>
    <UPDATE_TYPE>0</UPDATE_TYPE>
    <SORTSEQUENCE>10</SORTSEQUENCE>
    <BUILDINGBASE>0</BUILDINGBASE>
    </tblPoint_of_Call>
    </DepotData>';
    BEGIN
    insCtx := DBMS_XMLStore.newContext('AIMPRIME.TBLPOINT_OF_CALL'); -- get saved context
    -- set the columns to be updated as a list of values
    -- Now insert the doc.
    -- This will only insert into EMPNO, SAL and HIREDATE columns
    DBMS_XMLStore.setRowTag(insCtx,'tblPoint_of_Call');
    rows := DBMS_XMLStore.insertXML(insCtx, xmlDoc);
    -- Close the context
    DBMS_XMLStore.closeContext(insCtx);
    END;
    System Information:
    Oracle XE on windows XP. Everything is running on the same machine, sqlplus, Oracle Developer and the database are all on the same machine.
    If you need any more information please let me know, and how to get the information you want. I am not a DBA so I don't know how to do a lot of things with oracle, but I do know that this SQL should be working.

    NLS...read up on them
    on the same machine, yeah and...?
    (1) c:\> set NLS_LANG=.....
    (2) c:\> sqlplus
    -- sqlplus has the active nls settings set from (1)
    3) you now connect to a database
    - this database has an NLS character settings that where set during using a spfile or pfile
    - or, as in the case of the characterset, was defined and set once, during the creation of the database.
    So...
    Your NLS settings in (1) can be different from the ones that are active in the database (3).
    Your NLS settings are / can be set on windows on 5 levels
    In the registry under /software/oracle:
    1) on HKEY_LOCAL_MACHINE
    2) on HKEY LOCAL USER
    In the envionment settings from windows under control panel, system, advanced, environment settings:
    3) on system level
    4) on user level
    5) On command level via explicitly setting the parameter before starting the actual program
    So in all, you can have the case where the NLS settings from sqlplus or Oracle Developer or the database are all different.
    http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm

  • Why am I getting an Error #1090 xml parser error in IE only?

    Hi,
    I've got a Flex 3 website and I'm setting up an OpenX adServer. Everything works fine if I view my site in Firefox or Safari. The ads are served. But, if I view the site using Internet Explorer, I get error #1090, which is an xml parser error.
    I haven't posted any code as it is long. But, has anyone run into a similar problem, where the error #1090 only occurred in IE? Any general ideas as to why this would happen? Any suggestions or possible fixes?
    Thank you.
    -Laxmidi

    Hi Gregor,
    Thank you for the message.
    I've set-up OpenX on my production server only. I don't have OpenX running on my localhost. (So, if I ran it in Flash 9 debug version on my localhost, it is possible that I could get an error then, as well).
    When I view the production site in a standard IE8 browser, running the usual Flash 9, I get the error. If I view the production site in another browser (Safari or Firefox) I don't get the error. It's weird that the other browsers, don't have a problem.
    -Chris

  • I received a text today while at work about iCloud keychain verification code. I have not signed up for it or anything that uses it. I work out of the city with limited internet access so not sure why I would be getting this. Is my info safe??

    I received a text today while at work about iCloud keychain verification code. I have not signed up for it or anything that uses it. I work out of the city with limited internet access so not sure why I would be getting this. I only got this number about a month ago. Apparently someone else had the number before because I get texts from his family members wondering whats going on. I got one yesterday and the person didn't seem to thrilled that the number was cutoff and today I got 2 texts about iCloud Keychain which I don't even know what it is. Seems suspicious to me. If the person who use to own the number is doing it he should know it is not his number anymore because he obviously didn't pay his bills.  I'm not too sure about iCloud Keychain so just want to know my info safe?? It says it can store credit card numbers which is what gets me worried. Frankly I think it's pretty stupid to save that kind if information with any kind of app. But I don't want some random person trying to access my personal information because they are bitter they lost their number.  Please let me know as soon as possible so I can change passwords or anything that is needed.
    thanks

    If it were me, I would go to my carrier and get a new number. Since you have only had it for a month, the inconvenience would be minimal.
    Barry

  • Why the oracle XML parser "parses" the DTD comments?

    Hi all,
    I always use the header
    <?xml version = '1.0' encoding='ISO-8859-1' ?>
    to be able to use foreign characters in the XML documents.
    The oracle xml parser handles this correctly.
    My problem is, when I write comments inside the DTD, the
    parser reports "Invalid UTF8 encoding".
    Why the parser "parse" the comments? (protected by <!-- and -->)
    How do I say that the DTD encoding is different from UTF, like
    ISO-8859-1?
    Example of a correct DTD and corresponding XML, reporting
    problems, related to the 2nd comment in the DTD specification,
    written with ISO-8859-1 characters.
    The DTD:
    <!-- valid.dtd -->
    <!ELEMENT valid ( B, C ) >
    <!-- valid represents the concept "Identificagco" -->
    <!ELEMENT B (#PCDATA) >
    <!ELEMENT C (#PCDATA) >
    The XML:
    <?xml version = '1.0' encoding='ISO-8859-1' ?>
    <!DOCTYPE valid SYSTEM 'valid.dtd'>
    <valid>
    <B>How are you, Conceigco</B>
    <C>I'm fine, thank you.</C>
    </valid>
    The parser output:
    [jgr@frontera test-dtd]$ java oracle.xml.parser.v2.oraxml -v
    valid.xml
    Error while parsing input sourcevalid.xml(Invalid UTF8 encoding.)
    Thank you for any help.
    Jorge Gustavo Rocha

    I was wrong in saying that the attributes are not added to the element.My main aim is to add a array of elements to the root node.
    Is there a efficient manner in adding the elements , rather than adding them individually with the help of appendChild method.
    Thanks in advance.
    null

  • Firefox crashes continually. Now I'm getting this error and cannot open firefox at all: XML Parsing Error: not well-formed Location: chrome://browser/content/browser.xul Line Number 1068, Column 87:

    SInce the latest update Firefox has crashed continually for about two weeks now. Continually means at least 10 times a day. Now it does not open at all and I get this message when launching Firefox:
    XML Parsing Error: not well-formed Location: chrome://browser/content/browser.xul Line Number 1068, Column 87:

    SInce the latest update Firefox has crashed continually for about two weeks now. Continually means at least 10 times a day. Now it does not open at all and I get this message when launching Firefox:
    XML Parsing Error: not well-formed Location: chrome://browser/content/browser.xul Line Number 1068, Column 87:

Maybe you are looking for

  • W510 Solid State Drive (SSD) Gets Stuck Causing BSoD. Why?

    Hey guys, this has been a problem for a while now, and it is really mind boggling ... I have a Lenovo ThinkPad W510 laptop with a 256GB Crucial M4 SSD drive. Ever so randomly the drive just hangs, the LED light that the drive is trying to load someth

  • How do I play an audio clip embedded in a PDF file in Acrobat DC for iOS?

    It looks like playing audio clips from PDF files is currently not available on Acrobat DC for iOS, could this be enabled? Also it would be nice to be able to pause/restart/stop audio playback, see audio clip length and progress bar and jump to the de

  • No pop up on closing FireFox

    Since I updated to FF 5.0 and now FF 6.0 yesterday, I still do not receive the pop up notice/warming that "you are about to close several tabs, do you want to?" I've had this setting for a couple years now, I think. Probably since it was offered. I l

  • Backup LMS 3.2

    Hello, I scheduled a weekly Backup using GUI in Common Services; the backup generates a folder and it size is around 300MB (managing around 300 devices). Supposing that the server fails and i have to restore all configurations and databases, is enoug

  • Swap space utilization is increasing after Oracle11gr2 upgrade

    Hi we are using oracle11.5.10.2 on AIX 5.3 and recently upgraded database from oracle9.2.0.8 to Oracle 11gr2 (11.2.0.2) After upgrade Database i have observed gradually swap space is increasing and it is reaching upto 100% what could be the reason ?