🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
1 messages
1 total messages Started by rhariharasudhan05 Mon, 16 Feb 2009 10:28
Add Namespace in XPATH - Declaration - [JS]-CS4
#1237
Author: rhariharasudhan05
Date: Mon, 16 Feb 2009 10:28
28 lines
1601 bytes
Dear All,

Here I have a big doubt regarding for XPATH - Add Namespace in JavaScript.

I have to written in Vb.NET

//---------------- Add Namespace in VB.NET --------------------//
             Dim xDom As New XmlDocument
            Dim xNs As New XmlNamespaceManager(xDom.NameTable)
            xNs.AddNamespace("ce", "http://www.elsevier.com/xml/common/dtd")
            xNs.AddNamespace("aid", "http://adobe.com/4.0")
           AuthorNds = xDom.SelectNodes("//ce:author", xNs)
//--------End

and using the xNs in anywhere, But I can't declare the namespace in Javascript+XPATH.

this.name = "AddReturns";
//XPath will match on every XML element in the XML structure.
this.xpath = "//ce:author";	
// Define the apply function.
this.apply = function(myElement, myRuleProcessor)

Only is there in the XPATHs. So How to use and insert the namespace in the Javascript + XPATH operations.

Please kindly give me a suggestion to declare the XPATH in javascript....

Thanks & Regards
T.R.Harihara SudhaN
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads