I have code that calls the ReadXml method of the DataSet class and passes in a file name ReadXml(strFileName). Occasionally this throws a System.IO.IOException because the file is being used by another process.
If I change the code to use the ReadXml(stream) method and pass in a FileStream like this:
using(FileStream fs = new FileStre...
For example, in the case of XML data such as the following:
<foo>bar</foo>
The opening and closing < and > symbols could be called brackets.
However, in the following:
<br />
<data foo="bar" />
<blah a="1" b="2" />
Is there a good name for the closing /> token?
“There are only two hard things in Computer Science: cache invalid...
In one of my projects I use JAXB2 marshaller, having a contract-first web service I generate the objects from a XML Schema.
Everything works just fine. But, I have a "code usability" issue. Let me give you an example.
Schema:
<xs:complexType name="personContractAlertListType">
<xs:sequence>
<xs:element ref="PersonContrac...
Here is my scenario:
I have an XML file where various attributes (TextBox, CheckBox etc) of an HTML form are specified. (this is because, if the form changes later, the user only edits the XML file)
Now, I need to read the XML file and render the presentation accordingly.
So, should I:
Read the XML file everytime I need to render t...
So i have this chunk of XML:
<?xml version="1.0" encoding="UTF-8"?>
<groups>
<group>
<image name="afp.jpg"/>
<image name="agfa.jpg"/>
<image name="americomp.jpg"/>
</group>
<group>
<image name="canon.jpg"/>
<image name="carestream.jpg"/>
<image name="cmt.jpg" />
</group>
...
So, basically I want to make objects "Songs" from iTunes Library.xml
The problem is that XML-file looks more like .plist
Here is an example:
<key>56</key>
<dict>
<key>Track ID</key><integer>56</integer>
<key>Name</key><string>apple-ipad-video</string>
<key>Kind</key><string>QuickTime Movie</string>
<k...
Hello everyone:
I have following XSD code:
<xsd:complexType name="questions">
<xsd:sequence>
<xsd:element name="location" type="location"/>
<xsd:element name="multipleChoiceInput" type="multipleChoiceInput" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="textInput" type="textInput" minOccurs="0" max...
Hey,
I need to increase indentation of a formatted xml file to 4 spaces from 2 I tried using a regex powered XML formatter but it forgot to indent closing tags that were on a new line.
What options do I have, using preg_replace seems the best option, the search regex would be something like /( {2}^ANYTHING_EXCEPT_SPACE)/ but that's as...
I'm coding my first website using XML+XSL. The xml I am transforming have this section:
<page>
<news>
<highlights>
<entry>
<mini>x_thumb.jpg</mini>
<title>title</title>
<text>text</text>
<image>x.jpg</image>
<link>x.html</link>
...
I want a Layout that is as big as the screen with two rows and three columns
like that image =>
http://dl.dropbox.com/u/2024237/Bildschirmfoto-DroidDraw.png
the colors should be buttons...
please help .... i cant figure it out
...
Hi I am trying to serialize an array of objects which are derived from a class and I keep hitting the same error using c#. Any help is much appreciated.
obviously this example has been scaled down for the purpose of this post in the real world Shape would contain a plethora of different shapes.
Program.cs
namespace XMLInheritTests
{
...
I do have an xml generator written in PHP. sample is given below but few lines only due to space issues.
$output = '<?xml version="1.0" encoding="UTF-8"?>'."\n";
$output .= '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:ta...
1.i have a mass of content.
2.I want to drip that content piece by piece via a feed.
3.it needs to be updated daily and at a specific time (8 am)
heres some sample code im working on:
<channel>
<title>my title</title>
<skipHours>
<hour>0</hour>
<hour>1</hour>
<hour>2</hour>
<hour>3</hour>
<hour>4</hour>
<hour>5...
I wrote some Java classes and annotated them with the JAXB annotations.
After that I used schemagen to generate an xsd.
Then I build an object graph and marshalled it to a xml file.
I modified the xml file so that it was not valid anymore.
I wanted to use the xsd in the hope the JAXB unmarshalling fails. But it doesn't. Why?
JAXB is ...
I have WCF services exposed using WebGet and WebInvoke that require the data to be wrapped in xml. I would prefer to be able to return raw data without it being wrapped in xml and also allow clients the ability to invoke my service without needing to wrap the request in xml.
I'm serializing the data using protocol buffers and convertin...
I was the Android Developer article on Search: http://developer.android.com/guide/topics/search/index.html and was wondering if I could add other UI Elements to the searchable.xml file? Here is what I want to do:
<?xml version="1.0" encoding="utf-8"?>
<searchable xmlns:android="http://schemas.android.com/apk/res/android"
android:lab...
I am trying to implement my own Search using searchable, and as soon as press return after entering a query into my custom search field, I get a RuntimeException:
Thread [<1> main] (Suspended (exception RuntimeException))
ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord, Intent) line: 2585
ActivityThread.handleLaun...
In creating a google chrome extension, my XMLHttpRequest.responseXML works fine on my background.html page, but not my popup.html page.
Here is the code from the background.html page:
var request = new XMLHttpRequest();
request.open("GET","comics.xml",false);
request.send();
domXML = request.responseXML;
var xmlBookmarks = domXML.getEl...
Hello,
I would like to use java xml signing api for xades-t signature type. I need to do a canonical transform on signature value node, get a timestamp and insert the result under the object tag.
I can successfully use the api to do regular signing, but I am confused about getting one step further. any pointers are very much appreciated....
I have read that xml namespace value is any arbitrary string value.
But in the next paragraph in the book, I have read that : This namespace (xmlns:x) contains the required language components that are defined in the xaml specification, such as the ability to set an objects's name.
Please anyone clear me this line.
Because this strin...