Did you bother to preview this before you posted it, or read it afterwards? I assume not as it is unreadable. Please edit the content and place between <pre></pre> tags using the "code block" button at the top of the edit window.
SOAP is just the protocol used to call a webservice. Fortunately this protocol is transparent for you, since the .NET framework manages everything for you (serialization, deserialization, transport etc.)
How is it possible to import a COM dll from any flavor of unix.
On C++ on windows we can use the #import command to achieve this.
Does the same command help on any unix flavor.
The intent is to use the parsing functionality of msxml [parser.
1) Xerces: we need a separate platform/architecture specific binary. This is provided by Xerces.
2) libxml2- Can this be used on unix. I guess its usage is limited to windows.
3) xmllite is another one- One needs to leverage COM technology as interfaces are provided for XML related functions.
4) msxml works on similar way as that in 3)
The requirement is to read a simple xml document in an application.
This application would hold the XML DOM if created in memory in static area as the string that holds the static XML string would be static.
Working with ArcGIS catalog for map files you can create an XML file which contains info about the map.My intention is to gather this data in a DB (PostGreSQL) and create a searching system.The main thing is that searching for the info I want to get as a result the map corresponding to this XML data I searched.Anybody have any clues and give me any orientation because I have little experience with XML.
Thank you in advance
I am getting the data in xml file(microsoft office xml) . data is updating in xml file continously
I parsed the xml file to get the data display in my own gui . I get the data but problem is that
data is not updating . I see the different data in xml file and my gui. as I click save button of xml file
my gui get updated data. why it is happening . can I read the updated data without clicking the save button
note that xml file is microsoft office xml
I would like to know if it is possible to store media files within an XML file?
From what I know, most data stored within an XML file is textural based.
If one converts a database file, Excel sheet, etc. into an XML file, it simply stores this data in a textural format.
Does this mean that if I store an image (for example) within the XML file, it stores it as the textural representation of that image, or as a link to that image? Or is there a way of storing it within the XML file? (also, does the same apply to video, audio - mp3, midi, wav, etc, and all other media files)
it is possible to store media files within an XML file. As you already mentioned the textual representation of the file will be stored. A media file is a binary representation of the media itself. This binary representation can be stored on a sheet of paper, a database or an XML file. I suggest that you convert the binary representation of the file into a base64 encoded string (use Convert.ToBase64String) and place that string in an XML element.
I found a program that can convert an image to base64 string, and I can then embed this within the XML file.
I tried programming this myself in order to be able to convert files of any media format (images, audio, video, etc.)
I am kinda stuck trying to use the Convert.ToBase64String. I am trying to get an array of bytes from the image file to put in as a parameter for the Convert method.
The only array I can get from the image in the form of 'Guid' type.
Is the any other way of converting an image (and other files) to base64 string format?
I am writing a program that will be processing XML files. There are roughly 5 schemas involved. I should tell you now that I'm not using C# but a language called ABAP (SAP), although I think that's largely irrelevant.
The pseudocode for how this works is as follows:
OPEN FILE file AS TEXT.<br />
WHILE NOT EOF<br />
APPEND LINE OF file INTO xml_string.<br />
CALL TRANSFORMATION my_transformation USING xml_string INTO my_table.
Originally, there was just one schema and one transformation (a transformation is a small program in SAP that is used to take the XML string and turn it into something called an "internal table" - think of it as a DataTable for you C# developers).
Now that we've got different schemas, however, I need a way to know which one to call based upon the type of file. I've thought of two ways but if someone else has a better idea I'd love to know!
1) Use something in the filename to indicate the type of schema
2) Use an attribute in the root element to indicate the file type:
Unfortunately, with this approach I'd have to parse the first line of the file manually in my program as ABAP doesn't natively handle XML files very easily so it would be less work to do that. So, I'm leaning that way but I wanted a second opinion.
The namespaces are being declared in the root element, not on the dc element as I would like.
I'm attaching the XMLSerializerNamespaces as follows:
Dim XMLNamespaces As New XmlSerializerNamespaces()
XMLSerializer.Serialize(XMLWriter, inputObject, XMLNamespaces)
and the objects I'm using are shown below:
Public Class Record
Public Property1 As String
<XmlElement("dc", Namespace:="http://www.openarchives.org/OAI/2.0/oai_dc/")> _
Public DCMetadata As DublinCore
Public Sub New()
DCMetadata = New DublinCore()
<XmlRoot("dc", Namespace:="http://www.openarchives.org/OAI/2.0/oai_dc/")> _
Public Class DublinCore
<XmlElement("Property2", Namespace:="http://purl.org/dc/elements/1.1/")> _
Public Property2 As String
<XmlElement("Property3", Namespace:="http://purl.org/dc/elements/1.1/")> _
Public Property3 As String
Public Sub New()
Is there any way to force the XMLSerializer to output the namespace declarations against an element further down the line?