xml

Viewing large XML files in eclipse?

I'm working on a project involving some large XML files (from 50MB to over 1GB) and it would be nice if I could view them in eclipse (simple text view is fine) without Java running out of heap space. I've tried tweaking the amount of memory available to the jvm in eclipse.ini but haven't had much success. Any ideas? ...

Creating dynamic RSS feed page in ASP.NET (C#) - do I need to do anything extra?

I wish to create a dynamic RSS feed to represent my site's content. Currently, I have an XML file where each main entry has data for location, date, and summary of a file. If I were to create this feed in ASP.NET, would I need to do anything extra, in terms of things other than just parsing the XML and outputting some RSS? For example, h...

Open Source Xml Editor

I need to write a XML-based markup language. I'd like to provide an open source IDE for it, but I don't want to write it from scratch. So, I'm looking for an open source XML editor, written in C#, with WinForms or WPF UI, which I'll can extend it and add my markup language validation and etc, with the following features: XML Syntax Hig...

navigating through this xml structure with php

Im trying to loop through and display info from the following xml structure. <users_list> −<users type="array"> +<user> <id>Blah</id> </user> +<user></user> +<user></user> </users> <next_link>6</next_link> <prev_link>4</prev_link> </users_list> Im using the following PHP to grab the nodes. $xml = simpl...

A tough table transforming into XML

I have a DataTable which I select from database(Well,these data cross several tables,after the query and putting into a DataTable,it shows at below) ColumnA ColumnB a             11 b             33 b             44 a             22 b             55 but I want to transform it into an XML like...

StAX Writer Implementation for C/C++

Are there any other STaX Writer implementation for C/C++ except libxml2? ...

What is the simplest way to save basic processing instructions with my XmlDocument in C#?

In my code: XmlDocument document = new XmlDocument(); XmlElement book = document.CreateElement("book"); document.AppendChild(book); ... // create and add a bunch of nodes document.Save(filename); I want to modify my code so that the string <?xml version="1.0"?> is saved at the top of filename. What is the simplest way to do this? ...

Flex Setting dataProvider for an itemRenderer.

I have a httpservice that returns xml data. <mx:HTTPService id="httpService" url="data/Software.xml" resultFormat="e4x" result="httpResult_handler(event)" fault="Alert.show('XML Data Error')" /> I also have a datagrid using the returned data and also passing it to the renderer which works perfect. <mx:DataGrid id="myDG" dataProvider...

problem with simpleXMLElement

Here is my PHP code $xml= new SimpleXmlElement($rawxml); foreach($xml->children()->children() AS $key){ $id = $xml->{"id"}; $name = $xml->{"screen_name"}; $profimg = $xml->{"profile_image_url"}; echo "$id, $name, $profimg"; } $next = $xml->{"next_link"}; echo "index.php?".$next; Here is the structure of my xml <?xml version...

yahoo widgets and importing rss/xml feed using javascript

I'm playing about creating an RSS reader widget using Konfabulator/Yahoo. At the moment I'm pulling in the RSS using var xmlDoc = COM.createObject("Microsoft.XMLDOM"); xmlDoc.loadXML("http:foo.com/feed.rss"); I've simplified it here by removing the error handling, but what else could I use to do the same task using konfabulator? And ...

How to create XML from MSXML DOM

I've loaded an XML into a MSXML DOM node hierarchy, manipulated some of the nodes, and now I'd like to create an XML as a string from the node hierarchy. I know MSXML exposes a save functionality through IXMLDOMDocument.save(), however it is: 1) non-standard (i.e. not specified by W3C), and 2) apparently only writing to files (e.g. not t...

Base64 XML binary content

I have to send binary data in XML and the standard way of doing that is using base64; however I have two options: store the binary into a xs:base64binary store the utf-8 encoded string representation of the base64 binary into a xs:string element In the first case the schema reads: <xs:element name="Image" type="xs:base64Binary" /...

Right way to load and save a dataset

Hi I am using the following code to load a dataset from an xml file: public static DataSet _Data; public static DataSet Data { get { string encFileName = @"\\Pc\D$\temp\DS.xml"; try { if (_Data == null) { _Data = new DataSet1(...

Flex String to XML

I have a string in XML format and I want to use this string as flex XML type as following : This is my string : <Graph> <Node id="1" name="1" nodeColor="0x333333" nodeIcon="center" x="10" y="10" /> <Node id="2" name="2" nodeColor="0x333333" nodeIcon="center" x="10" y="10" /> <Node id="3" name="3" nodeColor="0x333333" nodeIcon=...

XPath expression help

I have an xml file like this: <students> <student name=....> </student> <student name=....> </student> <student name=....> </student> <student name=....> <failedcourses> ... </failedcourses> </student> <student name=....> <failedcourses> ... </failedcourse> </student> </students> I.e. I have a list ...

Error creating an XmlWriter when file already exists.

In my code, I have these lines: XmlWriterSettings writerSettings = new XmlWriterSettings(); writerSettings.Indent = true; XmlWriter writer = XmlWriter.Create(filename, writerSettings); document.Save(writer); This works fine when filename does not exist. But when it does, I get this error (on the 3rd line, not the 4th): System.IO.IOEx...

Verify if all attribute type xs:ID are present in the XML

I've made an XSD that contains this complex Type "Text" : <xs:complexType name="Text"> <xs:complexContent mixed="false"> <xs:attribute name="Id" type="xs:ID" use="required"> </xs:attribute> </xs:complexContent> </xs:complexType> In a string, I want to find all the Text nodes that are missing the ID. Is there a way to vali...

Calling a Stored Procedure with XML Datatype

I am simply trying to call a store procedure (SQL Server 2008) using C# and passing XMLDocument to a store procedure parameter that takes a SqlDbType.Xml data type. I am getting error: Failed to convert parameter value from a XmlDocument to a String. Below is code sample. How do you pass an XML Document to a store procedure that is e...

Flash parsing XML without loading an external file (as2)

Hi, In my flash, the socket server returns some xml data that I need to parse, but it seems that the only way to start the XML object is with the XML.Load() which loads an external file, but my XML file is already loaded into a variable trace("raw: "+msg); msgArea.htmlText += "update remote player loc"; var playerLocXMLOb = new XML(...

Knowing object from where in XML

I'm trying to know the MC I clicked, is from which line of code in my XML files. for (var i:Number=0; i<myXML.children().length(); i++) { addChild(someMC) } someMC.addEventListener(MouseEvent.click,clicky) ...