SELECT Fails for a WITHIN clause if the xml element have a DASH

I am using a context index on a CLOB Column and one of my records is like this.
?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cid-spf xmlns="java:com.verid.ident">
<tran-id>1020022445889</tran-id>
<tran-time>1187984936000</tran-time>
<mode>3</mode>
<spoofer>
<name/>
<ph>
<number>12106337000</number>
</ph>
</spoofer>
<spfd>
<name/>
<ph>
<number>13173708869</number>
</ph>
</spfd>
<st-time>1187984936000</st-time>
<dest-number>12106878012</dest-number>
</cid-spf>
When I run a query
SELECT * FROM identity_event
WHERE contains (identityeventdata,'1187812924000 WITHIN ST-TIME')>0
All my other xml elements works just fine.
I get this error.
[1]: (Error): ORA-12801: error signaled in parallel query server P003, instance maralpinor03.trogdor.com:maralpin3 (3) ORA-29902: error in executing ODCIIndexStart() routine ORA-20000: Oracle Text error: DRG-50901: text query parser syntax error on line 1, column 24

The dash or hyphen (-) has special meaning to Oracle text. It means MINUS. Any time that you want Oracle Text to treat such a special character as regular text, you need to escape it, either by putting a backslash (\) in front of each special character or by enclosing a whole word or phrase within curly brackets ({}). Please see the demonstration below.
SCOTT@10gXE> CREATE TABLE identity_event
  2    (identityeventdata  CLOB)
  3  /
Table created.
SCOTT@10gXE> INSERT INTO identity_event VALUES
  2  ('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  3  <cid-spf xmlns="java:com.verid.ident">
  4  <tran-id>1020022445889</tran-id>
  5  <tran-time>1187984936000</tran-time>
  6  <mode>3</mode>
  7  <spoofer>
  8  <name/>
  9  <ph>
10  <number>12106337000</number>
11  </ph>
12  </spoofer>
13  <spfd>
14  <name/>
15  <ph>
16  <number>13173708869</number>
17  </ph>
18  </spfd>
19  <st-time>1187984936000</st-time>
20  <dest-number>12106878012</dest-number>
21  </cid-spf>')
22  /
1 row created.
SCOTT@10gXE> CREATE INDEX your_index ON identity_event (identityeventdata)
  2  INDEXTYPE IS CTXSYS.CONTEXT
  3  PARAMETERS
  4    ('FILTER        CTXSYS.NULL_FILTER
  5        SECTION GROUP CTXSYS.AUTO_SECTION_GROUP')
  6  /
Index created.
SCOTT@10gXE> -- wrong:
SCOTT@10gXE> SELECT * FROM identity_event
  2  WHERE contains (identityeventdata,'1187812924000 WITHIN ST-TIME')>0
  3  /
SELECT * FROM identity_event
ERROR at line 1:
ORA-29902: error in executing ODCIIndexStart() routine
ORA-20000: Oracle Text error:
DRG-50901: text query parser syntax error on line 1, column 24
SCOTT@10gXE> -- correct:
SCOTT@10gXE> SELECT * FROM identity_event
  2  WHERE contains (identityeventdata,'1187984936000 WITHIN {ST-TIME}')>0
  3  /
IDENTITYEVENTDATA
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cid-spf xmlns="java:com.verid.ident">
<tran-id>1020022445889</tran-id>
<tran-time>1187984936000</tran-time>
<mode>3</mode>
<spoofer>
<name/>
<ph>
<number>12106337000</number>
</ph>
</spoofer>
<spfd>
<name/>
<ph>
<number>13173708869</number>
</ph>
</spfd>
<st-time>1187984936000</st-time>
<dest-number>12106878012</dest-number>
</cid-spf>
SCOTT@10gXE> SELECT * FROM identity_event
  2  WHERE contains (identityeventdata,'1187984936000 WITHIN ST\-TIME')>0
  3  /
IDENTITYEVENTDATA
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<cid-spf xmlns="java:com.verid.ident">
<tran-id>1020022445889</tran-id>
<tran-time>1187984936000</tran-time>
<mode>3</mode>
<spoofer>
<name/>
<ph>
<number>12106337000</number>
</ph>
</spoofer>
<spfd>
<name/>
<ph>
<number>13173708869</number>
</ph>
</spfd>
<st-time>1187984936000</st-time>
<dest-number>12106878012</dest-number>
</cid-spf>
SCOTT@10gXE>

Similar Messages

  • Whenever I select something, for example, I cannot see the marching ants selection until I either scroll up or down or zoom in or out. This occurs whenever I paste an image as well--nothing shows on screen until I scroll up or down or zoom in or out. Why

    Whenever I select something, for example, I cannot see the marching ants selection until I either scroll up or down or zoom in or out. This occurs whenever I paste an image as well--nothing shows on screen until I scroll up or down or zoom in or out. Why is this?

    Ap_Compsci_student_13 wrote:
    ok sorry but doesn't sscce say to post the whole code?the first S is Short, and yes, it needs to be all the code needed to illustrate the problem and let use reproduce it. If you were developing a new Web framework, your example might be short, but for a student game it's very long.

  • Login failed for user 'MgmtSvc-AdminAPI' because the account is currently locked out.

    We are getting the following error on our SMA web service machine in the mgmtsvc-adminapi log file.   Im guessing I could have also posted this in the WAP forum.     Any ideas on what would cause this?
    Also, we noticed the connection strings in the adminapi site are encrypted as well so not sure what the credentials are that WAP adminapi is using.
    System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'MgmtSvc-AdminAPI' because the account is currently locked out. The system administrator can unlock it.
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
    Thanks Lance

    Just had this error happen again.   THis is the account that microsoft configured during the WAP portal install.   The connection strings in the web.config for the adminapi site is encrypted so you cant see the credentials.  
    The WAP install didnt create local computer user but does create SQL Auth user with the name of MgmtSvc-AdminAPI
    Log Name:      Microsoft-WindowsAzurePack-MgmtSvc-AdminAPI/Operational
    Source:        Microsoft-WindowsAzurePack-MgmtSvc-AdminAPI
    Date:          12/9/2014 5:07:54 PM
    Event ID:      12
    Task Category: (65522)
    Level:         Error
    Keywords:      None
    User:          IIS APPPOOL\MgmtSvc-AdminAPI
    Computer:      SMAWAPCOMPUTER
    Description:
    Error:
    System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'MgmtSvc-AdminAPI' because the account is currently locked out. The system administrator can unlock it.
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
       at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)
       at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
       at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer
    timeout)
       at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
       at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance,
    SqlConnectionString userConnectionOptions, SessionData reconnectSessionData)
       at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
       at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
       at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
       at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
       at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
       at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
       at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
       at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
       at System.Data.SqlClient.SqlConnection.Open()
       at Microsoft.WindowsAzure.Server.Common.SessionManager.<IsMasterAsyncInternal>d__4.MoveNext()
       at Microsoft.WindowsAzure.Management.TaskSequencer.<>c__DisplayClass1e`1.<RunSequenceAsync>b__1d(Task previousTask)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.WindowsAzure.Server.AdminManagement.Service.CleanupRunner.MaintenanceCycleRunner.<RunCycleAsync>d__0.MoveNext()
    ClientConnectionId:13052455-e404-404b-abf9-ad4a10f270fd, operationName:, version:, accept language:, subscription Id:, client request Id:, principal Id:, page request Id:, server request id:
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-WindowsAzurePack-MgmtSvc-AdminAPI" Guid="{93AB61E1-C729-402F-9569-A23FB5E0B2D6}" />
        <EventID>12</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>65522</Task>
        <Opcode>0</Opcode>
        <Keywords>0x0</Keywords>
        <TimeCreated SystemTime="2014-12-09T23:07:54.084193000Z" />
        <EventRecordID>599</EventRecordID>
        <Correlation />
        <Execution ProcessID="5316" ThreadID="8120" />
        <Channel>Microsoft-WindowsAzurePack-MgmtSvc-AdminAPI/Operational</Channel>
        <Computer>SMAWAPCOMPUTER</Computer>
        <Security UserID="S-1-5-82-1634760204-2030663537-3042087576-1698961595-280283016" />
      </System>
      <EventData>
        <Data Name="message">
    System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'MgmtSvc-AdminAPI' because the account is currently locked out. The system administrator can unlock it.
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
       at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean&amp; dataReady)
       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)
       at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
       at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer
    timeout)
       at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
       at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance,
    SqlConnectionString userConnectionOptions, SessionData reconnectSessionData)
       at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
       at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
       at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal&amp; connection)
       at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal&amp; connection)
       at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal&amp; connection)
       at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
       at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
       at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
       at System.Data.SqlClient.SqlConnection.Open()
       at Microsoft.WindowsAzure.Server.Common.SessionManager.&lt;IsMasterAsyncInternal&gt;d__4.MoveNext()
       at Microsoft.WindowsAzure.Management.TaskSequencer.&lt;&gt;c__DisplayClass1e`1.&lt;RunSequenceAsync&gt;b__1d(Task previousTask)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.WindowsAzure.Server.AdminManagement.Service.CleanupRunner.MaintenanceCycleRunner.&lt;RunCycleAsync&gt;d__0.MoveNext()
    ClientConnectionId:13052455-e404-404b-abf9-ad4a10f270fd</Data>
        <Data Name="requestId">
        </Data>
        <Data Name="subscriptionId">
        </Data>
        <Data Name="clientRequestId">
        </Data>
        <Data Name="principalId">
        </Data>
        <Data Name="version">
        </Data>
        <Data Name="pageRequestId">
        </Data>
        <Data Name="acceptLanguage">
        </Data>
        <Data Name="operationName">
        </Data>
      </EventData>
    </Event>
    Thanks Lance

  • LR 5 is very slow to give me a visual so I can properly select them for import. What's the problem?

    LR 5 is very very very slow in giving me a visual of my images so I can properly select them for import. What's the problem? I'm very disappointed with this glitch! Please Adobe fix it quickly! Has anyone else come across this problem? Any solutions? thanks

    trygzuz wrote:
    LR 5 is very very very slow in giving me a visual of my images so I can properly select them for import. What's the problem? I'm very disappointed with this glitch! Please Adobe fix it quickly! Has anyone else come across this problem? Any solutions? thanks
    Is "very very very slow" 30 seconds or 30 minutes or 30 hours or 30 years?
    It is possible that you have a hardware problem which is causing the slow operation (in my case, it was a bad card reader, but it could also be a bad USB port or USB cable or bad camera card). In fact, in my opinion, these issues are 99.9% of the time hardware issues.

  • I have been using Itunes on my HP laptop for 12 months and over the past month have not been able to access the Itunes store or any of the Itunes Help type menu's. When in Itunes I click on the Store icon and the top middle box gets to Half way. Pls help

    I  have been using Itunes on my HP laptop for 12 months and over the past month have not been able to access the Itunes store or any of the Itunes Help type menu's. When in Itunes I click on the Store icon and the top middle box gets to Half way. Pls help

    I had the same tried loads of fixes
    saw this on the community from whatheck
    In windows 7 click on your start menu, go to the accessories, right click on the command icon and choose "run as administrator"
    Once it opens type the following command...
    netsh winsock reset
    Hit enter and it should say something like winsock reset successful now reboot your computer
    IT WORKED....... cleared all the "action2 on the CPU and loads IStore perfectly

  • Just got a new iPod Nano 7gen. Have downloaded and installed iTunes 10.7 and installed succesfully. But iTunes fails when I try to start the program. Have OS X 10.8.2. Moutain Lion. Please help - thanks. Sven

    Just got a new iPod Nano 7gen. Have downloaded and installed iTunes 10.7 and installed succesfully. But iTunes fails when I try to start the program. Have OS X 10.8.2. Moutain Lion. Please help - thanks.
    Sven

    Problem solved. Copied latest file of iTunes Library.itl from Previous iTunes Libraries and replaced it with the original in Music - iTunes-folder.

  • What is the relevence of MD04 for SD and what r the things we hav to look

    what is the relevence of MD04 for SD and what r the things we hav to look

    Hi Venkata,
    MD04 will show a collection of the incoming and outgoing stock changes.
    And for SD, it will display the content in table VBBE and VBBS (single requirement and total requirement).
    The content was updated when the schedule line category is configured as relevant for requirement transfer.
    And I often use MD04 together with CO09 to estimate/check a ATP checking result.
    Hope this could do help!
    Hongyan

  • How to escape or remove the special characters in the xml element by regula

    Hi members,
    How to escape or remove the special characters in the xml element by regular expression  in java??
    For Example ,
    <my:name> aaaa </my:name>
    <my:age> 27 </my:age>
    In the above example , i have to retrieve the value of the <my:name> Element(For examlpe -- i have to get "aaaa" from <my:name> tag)...
    How to retreive this value by using DOM with XPATH in java
    Thanks in Advance

    Hi members,
    I forget to paste my coding for the above question....This is my coding......In this display the error...... Pls reply ASAP.......
    PROGRAM:
    import java.io.IOException;
    import java.util.Hashtable;
    import java.util.Map;
    import org.w3c.dom.*;
    import org.xml.sax.SAXException;
    import javax.xml.parsers.*;
    import javax.xml.xpath.*;
    public class DOMReaderForXMP {
         static Document doc;
         static XPath xpath;
         static Object result;
         static NodeList nodes;
         public DOMReaderForXMP() throws ParserConfigurationException, SAXException,
                   IOException, XPathExpressionException {
              DocumentBuilderFactory domFactory = DocumentBuilderFactory
                        .newInstance();
              domFactory.setNamespaceAware(true);
              DocumentBuilder builder = domFactory.newDocumentBuilder();
              doc = builder.parse("d:\\XMP.xml");
              XPathFactory factory = XPathFactory.newInstance();
              xpath = factory.newXPath();
         public static void perform(String path) throws Exception {
              result = xpath.evaluate(path, doc, XPathConstants.NODESET);
              nodes = (NodeList) result;
         public void check() throws Exception {
              perform("//my:name/text()");
              if (!nodes.item(0).getNodeValue().equals("application/pdf")) {
                   System.out.println("Mathces....!");
    ERROR:
    Exception in thread "main" net.sf.saxon.trans.StaticError: XPath syntax error at char 9 in {/my:name}:
    Prefix aas has not been declared

  • [JS-CS4] - How to read the XML Element and its Attributes

    Dear All,
      I have the doubt regarding: reading the xmlElement and its attributes.
    Here I droping the xml script
    //============= Start ======================//
    var myDoc = app.activeDocument;
    var Fpath = File("../Projects/Entity_map.xml");
      if (Fpath.exists)
       Fpath.open("r");
       var Cont= Fpath.read();
      var roots = new XML(Cont);
      var myEveryName = new Array();
      var myEveryContent = new Array();
      var myEveryAttributes = new Array();
      traverse(roots);
    //$.writeln(myEveryName);
    //$.writeln(myEveryContent);
    $.writeln(myEveryAttributes.length);
    for(var i=0; i<myEveryAttributes.length; i++)
      $.writeln(myEveryAttributes[i]);
    function traverse(tree) {
        myEveryName.push(tree.name());
    myEveryContent.push(tree.text());
      myEveryAttributes.push(tree.getAttribute);
    // you get the contents by using .text() insted of .name()
        if(tree.elements().length() > 0) {
            for(var i=0; i<tree.elements().length(); i++) {
                traverse(tree.elements()[i]);
    //============== End =====================//
    and the XML Structure is
    //===============XML =====================//
    <?xml version="1.0" encoding="UTF-8"?>< Entity_Convertion>
    < Entitys char="Ç" GID="173"/></ 
    Entity_Convertion>
    //===============End ====================//
    Here I'm getting the XML Elements and its contents, but not xmlAttributes.
    Please any one can help me, then I will appreciate...
    Thanks & Regards
    T.R.Harihara SudhaN

    Dear All,
      I have the doubt regarding: reading the xmlElement and its attributes.
    Here I droping the xml script
    //============= Start ======================//
    var myDoc = app.activeDocument;
    var Fpath = File("../Projects/Entity_map.xml");
      if (Fpath.exists)
       Fpath.open("r");
       var Cont= Fpath.read();
      var roots = new XML(Cont);
      var myEveryName = new Array();
      var myEveryContent = new Array();
      var myEveryAttributes = new Array();
      traverse(roots);
    //$.writeln(myEveryName);
    //$.writeln(myEveryContent);
    $.writeln(myEveryAttributes.length);
    for(var i=0; i<myEveryAttributes.length; i++)
      $.writeln(myEveryAttributes[i]);
    function traverse(tree) {
        myEveryName.push(tree.name());
    myEveryContent.push(tree.text());
      myEveryAttributes.push(tree.getAttribute);
    // you get the contents by using .text() insted of .name()
        if(tree.elements().length() > 0) {
            for(var i=0; i<tree.elements().length(); i++) {
                traverse(tree.elements()[i]);
    //============== End =====================//
    and the XML Structure is
    //===============XML =====================//
    <?xml version="1.0" encoding="UTF-8"?>< Entity_Convertion>
    < Entitys char="Ç" GID="173"/></ 
    Entity_Convertion>
    //===============End ====================//
    Here I'm getting the XML Elements and its contents, but not xmlAttributes.
    Please any one can help me, then I will appreciate...
    Thanks & Regards
    T.R.Harihara SudhaN

  • Find the XML Element [ email ]

    Hi All,
    I am new to InDesign scripting.
    I want to know how to find the XML Element [<email>] in n number of nested structure?
    Give me any idea.
    Thanks, RAJ

    Hi RAJ,
    See my updated code below:
    var myDocument = app.activeDocument;
    FindEmail(myDocument);
    alert("process Completed");
    function FindEmail(elm)
        for (var i = 0; i < elm.xmlElements.length; i++)
            XMLelementName=elm.xmlElements[i].markupTag.name.toString();
            if(XMLelementName=="email")
                elm.xmlElements[i].markupTag = "mail";
            FindEmail(elm.xmlElements[i]);
    Regards,
    Ramkumar .P

  • I need the XML elements appear in different paragraphs ...  Could do this with a script?

    I need the XML elements appear in different paragraphs ...
    Could do this with a script?
    Thanks...

    You can use this / Puedes usar esto
    insertTextAsContent("\n",XMLElementPosition.beforeElement);                  
    //  or             
    insertTextAsContent("\r", XMLElementPosition.afterElement);
    Necesitaria mas información,

  • An error has occurred during report processing. (rsProcessingAborted). Query execution failed for dataset 'DimUserWorkCentre'. (rsErrorExecutingCommand). The Cube either does not exists or has not been processed

    Hi,
    I'm having issues with the report created using SSAS cube.
    An error has occurred during report processing. (rsProcessingAborted)
    Query execution failed for dataset 'DimUserWorkCentre'. (rsErrorExecutingCommand)
    The Operator_Performance cube either does not exist or has not been processed.
    I have searched through internet and tried all the solutions, but didn't worked for me.
    SSRS services running as NETEWORK SERVICE user.
    SSRS Execution running as a Different user, which is the login is used to logon ot that server. I have also verified this user has access to database. I'm using Shared DataSource(SSAS Source) for this report.
    Can any one please help me.
    Thank You,
    Praveen.
    Praveen

    Hello,
    Have you tried it to execute on report manager , Is your data source properly configured in Report Manager  and your report is mapped with Datset correctly?
    Have you executed the Dataset query MDX editor  now?
    What is the volume of data you are fetching in the report. Try it to execute in other than IE , I don't know the exact reason but some of our report with large volume of data  are failing on IE , on the other hand these reports are running fine Google
    Chrome
    blog:My Blog/
    Hope this will help you !!!
    Sanjeewan

  • Indesign suddenly asking for serial number and rejecting the one I have

    Hi,
    This question is very similar to that of act_writ from 19/10/2014 ("Sudden trouble opening InDesign - serial number rejected")
    - I am asking again because that question was not answered.
    We have InDesign CS6 on a Mac, purchased last year with a student license. It always worked and opened the program without asking for a login. All of a sudden yesterday it asked for a login and the serial number, but it rejects the serial number I have received when purchasing the product.
    I am still a student so it should not have expired.
    Any help would be appreciated - I am pretty desperate as the customer support agent I contacted could not help me.
    Thanks!

    A serial should be ok if it was ok.
    Exceptions are: If the serial was used several times in a way which is causing doubts of its legal use, then will Adobe deactivate it (e.g. use of several serial in connection with illegal copies) or when Adobe shuts down the activation server as it was done with CS2, but the user could replace it with a common serial.
    Normal, with a running program it will never ask for a serial, only if the user clean up his computer and delete some folder and files where activation files are hidden. But in that case the serial should be inserted with the next start or in the wort scenario you might uninstall all programs and install them again to be able to enter the serial.
    For non English (including UK and US and International) versions users the serial can also fail when the localisation files are deleted.
    Maybe that you exchange the serial with some other number or a number from another product which was bundled?

  • Free cd/dvd burner for mac os 10.7 - the version i have is roxio toast but in os10.7.5 when i try to open app - it said  can't open app because powerpc apps arent supported ?

    - the version i have is roxio toast but in os10.7.5 when i try to open app - it said  can't open app because powerpc apps arent supported ?
    is there a free app download to burn cd/dvd for os10.7?

    Depending on what type of CD/DVD you intend to burn, you may not need any 3rd party applications:
    - To burn data CDs or DVDs simply insert a blank disc, drag files to the empty FInder window that represents the disc, then click the burn button (I think t appears near the top of the finder window).
    - To burn music CDs just use iTunes
    - To create disk images from a CD or DVD use Disk Utility.  To burn .iso or .cdr images to disc use Disk Utility.
    About the only type of disc burning that you may need a 3rd party application for is to create a DVD movie (iDVD used to do this but no longer a supported app).  I haven't ever needed anything outside of the built-in capabilities of OS X when it comes to burnig CD or DVD media.  One suggestion is to make sure to remove all of the Roxio software so that it doesn't interfere with the built-in OS X capabilities.
    Hope this heps.

  • How to associate an xml from httpservice to datagrid if the xml element name contains periods in it

    Following is the xml from an http service, how to associate
    this xml to a data grid (employee name, number) since it contains
    periods(dots) in xml element name.
    An early help is appreciated.....
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <com.companyx>
    <person>
    <employee.data>
    <employee.name>mrx</employee.name>
    <employee.number>1001</employee.number>
    </employee.data>
    <employee.data>
    <employee.name>mry</employee.name>
    <employee.number>1002</employee.number>
    </employee.data>
    <employee.data>
    <employee.name>mrz</employee.name>
    <employee.number>1003</employee.number>
    </employee.data>
    <page>0</page>
    </person>
    </com.companyx>
    Thanks,
    Vijay Karthik

    HI
    GOOD
    IT IS POSSIBLE IN ABAP
    Extensible Markup Language (XML) is a simple, very flexible text format derived from SGML (ISO 8879). Originally designed to meet the challenges of large-scale electronic publishing, XML is also playing an increasingly important role in the exchange of a wide variety of data on the Web and elsewhere.
    XSD->
    XML Schemas express shared vocabularies and allow machines to carry out rules made by people. They provide a means for defining the structure, content and semantics of XML documents. in more detail.
    XDS->
    XDS can process data images from CCD-, imaging-plate, and multiwire-detectors in a variety of formats. Detector specific Input file templates greatly simplify the use of XDS; they are provided as part of the documentation.
    XDS runs under Unix or Linux on a single server or a grid of up to 99 machines of the same type managed by the MOSIX system; in addition, by using OpenMP, it can be executed in parallel on up to 32 processors at each node that share the same address space.
    http://www2.stylusstudio.com/SSDN/default.asp?action=9&fid=23&read=2926
    /people/r.eijpe/blog/2006/02/19/xml-dom-processing-in-abap-part-iiia150-xml-dom-within-sap-xi-abap-mapping
    THANKS
    MRUTYUN

Maybe you are looking for

  • Inserting flash video does not work completelty

    Hello guys , i don't know how to give up with hard things but this matter drived me mad and i have read and tried many things without any result , locally and on the site when i publish it > I am embedding a flv video into dreamweaver but nothing it

  • Freight posting in MIRO based upon multiple goods receipt.

    Hi In one of the companies they are requesting the freight charge to be broken into multiple lines (based upon multiple goods receipt)  instead of one consolidated balances in the invoice (MIRO).  Right now each time we do a MIGO against the same PO

  • MSI 890FX-GD70 and AMD 1100T won't boot. bug LED shows F F.

     Hello everyone!  This is my First Time  Build a Custom PC.  My MoBo won't boot Bios ,  NB shows debug LED   Off  of  AMD  1100t  Processor , What's wrong? I Properly removed processor  and cleaned and reinstalled again  with thermal paste  , CPU fan

  • LR sharpening in both Develop and Print?

    LR has sharpending in both Develop and Print modules. What recommendations to people have for setting them? Do the different sliders effect different parts of the image? Any insights? Obviously the type of camera, file format and output size all have

  • OSX 10.9 update removed java - how to fix that?

    After updating to OS 10.9 I could no longer us my most important app PHPStorm because it relies on java and the OSX 10.9 installer sabotaged it. When I type java on the console it now says No Java runtime present, requesting install. request, hu? ***