I'm trying to remove double quotes from text nodes. The following code works:  var cars = <cars>              <buick>                 <color>                    "Blue"                 </color>              </bui...
I'm using Mirth to read HL7 messages from our DB and send them out to a client's EMR.  This particular EMR requires that the OBR and OBX for the embedded PDF are formatted a specific way.  If OBR.4.1 and OBR.4.2 have "0PDF^PDF Report"...
What's the simplest way to tell if an attribute exists?  p = <abc name="foo" />;   js>[email protected]() 1 js>[email protected]() 0   I can use @attr.length() but was wondering if there is an isAttributePresent() or something.  NO...
Consider this scenario:  Using Javascript/E4X, in a non-browser usage scenario (a Javascript HL7 integration engine), there is a variable holding an XML snippet that could have multiple repeating nodes.  <pets>         <pet type="dog"...
I'm working on Rhino (Mirth), and I've got to process / parse an XML with the following structure:  <root> <row> <foo-1 /> <foo-2 /> <foo-3 /> <foo-4 /> ... <bar-1 /> <bar-2 /> <bar-3 /> &...
This is just a simple question. I'm currently using Mozilla's Rhino to develop a little webapp. As one step, I need to get a webpage and filter all of it's nodes. For doing that, I use E4X. I thought I could do this like that:  var pnodes...
One might think the corresponding E4X query for the XPath query, //*[@foo = "bar"], would be ..*.(@foo == "bar"), but that will throw an error whenever it gets to an element without a foo attribute. I am currently using ..*.(function:...
Sorry if I'm doing anything really dumb, but could anybody see anything immediately wrong with the following?  var layout = new XML()  layout= <layout color="red"> </layout>  function init() {  post([email protected]); }   it retu...
Suppose I have the following XML:  var foo:XML = <root><a>this is a <b>special</b> case</a></root>   Is there any way to detect the position of <b> relative to the contents of <a> without a custom subpa...
I'm processing XML using Rhino 1.7R3 and have trouble accessing xml:id attribute.  var bond = new XML('<person xml:id="007" profession="agent">James Bond</person>'); print(bond); // "James Bond" print(b...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.