xml

I want to create a .XML file in java

I want to create a .XML file and add or edit the elements under the root. How do i do it? how to create a new XML file and edit the content to the same file using Java. ...

Encrypting XML database in python

i am using XML as my backend for the application... LXML is used to parse the xml. How can i encrypt this xml file to make sure that the data is protected...... thanks in advance. ...

Why my WCF Service returns xml serialized objects?

Hi, I'm new here and I hope anyonte can help me. I have WCF Service and Windows Forms working with this client written in VB.NET. The Service class started to return xml serialized objects, but all my classes on Service side are DataContract-s and the service class is DataContractFormat. I googled everywhere about serializations and I ...

XML/C#: Read content if only if attribute is correct

Hi Guys, I have an XML file as follows, and I'm trying to read the content of the Name tag, only if the attribute of the Record tag is what I want. (continued below code) The XML file is: <?xml version="1.0" encoding="utf-8" ?> <Database> <Record Number="1"> <Name>John Doe</Name> <Position>1</Position> <HoursWorked>290</...

Flash AS3 loading XML into listbox

I am able to load my XML file into flash and trace results. Want to populate listbox with information from xml file. Structure of xml file: <eBorders> <item> <thumb>borderTh/blank_th.jpg</thumb> <file>border/blank.jpg</file> </item> <item> <thumb>borderTh/border1_th.jpg</thumb> ...

Writing to a xml file in java

import java.io.*; import javax.xml.parsers.*; import javax.xml.transform.*; import javax.xml.transform.dom.*; import javax.xml.transform.stream.*; import org.w3c.dom.*; public class CreatXMLFile { public static void main(String[] args) throws Exception { BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); // ...

ZSI.generate.Wsdl2PythonError: unsupported local simpleType restriction

Hi guys, i have this simple type from an external webservice: <xsd:element name="card_number" maxOccurs="1" minOccurs="1"> <xsd:simpleType> <xsd:restriction base="tns:PanType"> <xsd:pattern value="\d{16}"></xsd:pattern> <xsd:whiteSpace value="collapse"></xsd:whiteSpace> </xsd:restriction> </xsd:simpleType> </xsd:...

can't read XML via PHP

I can't find the reason, only see the following error message. Input is not proper UTF-8, indicate encoding ! Bytes: 0x00 0x5D 0x5D 0x3E the followings are my php code $reader2 = new XMLReader(); $reader2->XML($xmlstring); $user_data=""; while ($reader2->read()) { if ($reader2->name == "user_id" && $reader2->nodeType == XMLReade...

Tentative date casting in tsql

I am looking for something like TRYCAST in TSQL or an equivalent method / hack. In my case I am extracting some date data from an xml column. The following query throws "Arithmetic overflow error converting expression to data type datetime." if the piece of data found in the xml cannot be converted to datetime (in this specific case, ...

populating object collection property with Linq

I have an XML structure that has many doc nodes, and each node may have zero or more extract paragraphs (paras). <doc> <docitem>3</docitem> <docid>129826</docid> <doctitle>sample title</doctitle> <docdatetime>2009-07-03T16:59:00</docdatetime> <collectdatetime>2009-07-03T16:59:23</collectdatetime> <summary> ...

Generating report from an xml file

I want to generate a report from an xml, preferably html. The html here should be dynamic to allow limiting the view based on some user entered values, preferably selecting from a drop down of categories, which inturn is populated from the xml. I also want to have links in the report to more info which is stored in another xml file. I s...

How to add attributes to an element using LINQ, C#?

Hi, I have an XElement object which has a number of attributes and I simply want to add another attribute to the element. How do I do this? Thanks, Matt. ...

Best way XML File handling bullet point •

For an XML file I am creating I have data that contains a bullet • what is the best method for handling this in xml data? It opens in an XML editor and reads fine, but I cannot import the file via SSIS, I get an error regarding this point. <xmldata>• Bullet</xmldata> Renders fine, but cannot import with SSIS. ...

How to send xml to a php page

I have a client application that gives its output as an xml file, i want the xml to be sent to a remote server and processed using php... ...

setTimeout in javascript not giving browser 'breathing room'

Alright, I thought I had this whole setTimeout thing perfect but I seem to be horribly mistaken. I'm using excanvas and javascript to draw a map of my home state, however the drawing procedure chokes the browser. Right now I'm forced to pander to IE6 because I'm in a big organisation, which is probably a large part of the slowness. So ...

What is the easiest way to convert xml to html?

What is the easiest way to convert xml to html? I have xml file coming to java class. There is few tags with content. I need to convert them into html. Is there any tools or libraries? ...

Validating document in Xerces C++

I want to load an XML document in Xerces-C++ (version 2.8, under Linux), and validate it using a DTD schema not referenced from the document. I tried the following: XercesDOMParser parser; parser.loadGrammar("grammar.dtd", Grammar::DTDGrammarType); parser.setValidationScheme(XercesDOMParser::Val_Always); parser.parse("xmlfile.xml"); B...

Can I reference an overloaded method using C# documentation tags?

In this particular code sample I want to reference the second overloaded method (int n) from C# documentation tags: /// <summary> /// The method to pass an integer to is <see cref="DoSomething"> /// </summary> void DoSomething() { } void DoSomething(int n) { } void DoSomething(string str) { } But how? ...

facebook events to rss feed?

it looks like there used to be an export events button (to rss) but fb have removed it, i've looked at fbCal but it only exports the event name and the link to the event, but none of the event details. anyone got any ideas of how i can get multiple event details out of facebook? ...

Implementing exslt.dynamic.evaluate in c# (XslCompiledTransform)

Hi, I have a stylesheet that makes use of exslt:dynamic module and more precisely, it only uses the evaluate function. I know the XslCompiledTransform from .NET 2.0 does not implement this module (just like the ExslTransform from Mvp.Xml). Any idea how to solve this problem? ...