xml

AS3: How to get all XML-Nodes with a special attribute? (With sourch)

Hi there The Challenge: i d like to collect all nodes with the attribute "id". The Problem: The code doenst work with nested nodes. <?xml version="1.0" encoding="utf-8"?><contentmap><fonts id="fonts"> fonts/Arial.swf swf/library_main.swf private function onXMLLoader(event : Event) : void { _xml = _loader.getXML(event.targ...

Tiny Flash Question

I have this flash code - I need to add getURL(this.mainurl, "_self"); so that this.mainurl is a dynamic value from an XML file. Can anybody maybe show me how to make the getURL value dynamic myPhoto = new XML(); myPhoto.ignoreWhite = true; myPhoto.onLoad = function(success) { //portfolioTag = this.firstChild; numimages = this.first...

Is there a standard or guideline for creating XML files?

I’m curious if there is standard or guideline for determining what types of things should be attributes vs elements within the xml file. I’m also curious about creating xmlarray and xmlarrayitem lists using XMLSerializer. For example if I have the following: <SomeBaseTag> <Item1 Attr11=”one” Attr12=”two” /> <Item1 Attr11=”one” A...

SOAP-ERROR: Encoding: Violation of encoding rules?

Guys, I'm stuck, banging my head off the desk for the past few hours. I am trying to consume a service, and I have 8 other functions that I call that are almost IDENTICAL in nature to this one, but this one, results in a 'SOAP-ERROR: Encoding: Violation of encoding rules' error. Heres the function call (wsdl omitted for security): ...

jqGrid unable to load xml data from server

I'm using jqGrid 3.5.2 and having issue with loading xml file from server side. BTW I have found a similar post arround, but didn't help much though. Here is my client Side code: $(”#list4″).jqGrid({ url:'http://localhost/cgi-bin2/test.pl', datatype: 'xml', mtype: 'GET', height: 400, colNames:['No','Date'], colModel:...

handling empty sequence in XSLT function

I have an XSLT function which checks whether the sent parameter is in YYYYMMDD format or not, in some conditions i am not getting any value to the function, during these conditions SAXON throwing below error **"An empty sequence is not allowed as the first argument of cda:isValidDate()"** any suggestions how to handle this sit...

How to effectively buffer and flush stream in Open XML SDK

Hello, I use OpenXML SDK 2.0 to generate Excel file with large amount of data, appox. 1000000 rows, and I need to optimize memory usage because my machine slow down very fast. I want to solve this issue by flushing part of generated DOM tree into file in runtime. I make my own buffering for data. E.g I have 100000 records to write an...

Update RSS from another XML file?

Hey. I am quite new to the whole web development/programming. I am trying to create an RSS feed which gets info from a separate XML file. I know basics about XML and RSS, but I don't know how to make it updade. Lets say I update the XML then how would the RSS update automatically? Can someone maybe put me on the right track? Thanks in ...

XSLT is in decline - what's replacing it?

According to Google trends, XSLT is declining fast: http://www.google.com/trends?q=xslt If we extrapolate it as straight line, it will reach zero in 3 years (though it's probably curving, so it will asymptote to zero). XML itself is also declining, at a similar rate, but seems to have leveled off a lot already: http://www.google.com/tr...

Data in XML files: One large file or multiple small ones?

I am currently working on a XML-based CMS that saves data in chunks called "items". These can be used on the website to display content. Now, at the moment I have one separate XML file for every item. Since most pages on that website use about three to four of these items, a rather small website with e.g. 20 pages has about 100 differe...

CRM Ondemand Integration Events queue

I've been using the Integration Events web service, for not that much, and i was wondering if there is an elegant way to manage the queue. I changed the integration event wsdl, to fit my needs, but i don't know what value i need to set in the xml for the EventCount to make it not required. Thanxs in advance. ...

Flex: XMLList of attirubites.... convert to nodes?

say I have an xmllist like this (but with many other attributes not shown for brevity): <node metal="white gold"/> <node metal="yellow gold"/> <node metal="silver"/> and I access the metal attributes via xmllist.@metal which will give me a new xmllist like this: white gold yellow gold silver I want to convert that to an xmllist tha...

Simple example of reification in RDF-XML

Could anybody be so kind to give me a simple example of reification in RDF-XML ? I want to see if I understood it correctly. For example, I propose the following case Tolkien -> wrote -> Lord of the rings /|\ | Wikipedia said that How would you write it with and without reification (i.e. as a simple RDF...

Java - Image encoding in XML

Hi everyone, I thought I would find a solution to this problem relatively easily, but here I am calling upon the help from ye gods to pull me out of this conundrum. So, I've got an image and I want to store it in an XML document using Java. I have previously achieved this in VisualBasic by saving the image to a stream, converting the s...

EDI to XML Conversion

Hi, I'm searching for a free EDI to XML converter in Java. I need to convert EDI 940 to xml and convert XML to EDI 945. The catch is that this will be used for a commercial project, I've found some projects on sourceforge but they are under GNU General Public License which if I read it correctly means I would need to pay to use it for ...

Should I be using JSON or XML or something to fetch a pages contents every X amount of time?

index.php has this jquery code which loads notifications.inc.php into a div on the page every X amount of seconds <script type='text/javascript'> $(document).ready(function(){ var updatenotification = function(){ $('#notificationcontainer') .load('notifications.inc.php') .fadeIn("slow"...

How to extract a meta tag from XML/HTML using Linq?

I am trying to parse a bit of data from an HTML file, but my Linq statement is not working. Here is the XML/HTML. Below, how can I extract the string "41.8;12.23" from the geo.position meta tag? Thx!! Here is my Linq String longLat = (String) from el in xdoc.Descendants() where (string)el.Name...

Compare two XmlNodes in C#

Is there a simple way to compare two XML structures to determine if they have the same structure and data? I have a function that returns an XmlNode and I am trying to write unit tests for it. I store the correct XML result in a file. Durring the test I load the file into an XmlDocument, locate the proper XmlNode and compare against t...

Oracle DateTime throwing errors in XML Schema

Hello, From my VB application I am generating XML document based on data fetched from Oracle db. I have a XML schema element of type dateTime When I try to validate I am getting the following error cvc-datatype-valid.1.2.1: '8/20/2009 1:30:00 PM' is not a valid value for 'dateTime' How do I handle this in my vb.net application. How ...

Biztalk Developer pre-screening test and interview questions

Similar to other interview question threads, we're preparing to interview candidates for a Biztalk/.NET Webservices/XML/general mid-tier developer position, and I'm looking for some good input from the community. We'd like to pre-screen the applicants (since they'll come from a tech agency) with a written test that covers basic knowledge...