microsoft.public.dotnet.xml Archive - August 2004
Post a message to this list
Messages
Page: 12345678910
Cannot serialize member System.ComponentModel.MarshalByValueComponent.Site of type System.ComponentModel.ISite because it is an interface. (4 replies, VIP)
microsoft.public.dotnet.xml
I have read a previous posting about this error that seems to apply to my problem: Cannot serialize member System.ComponentModel.MarshalByValueComponent.Site of type System.ComponentModel.ISite because it is an interface. The setup I have is a web service that instantiates a class dsError which contains a dataset for database results, an int errorcode and an errormessage string. Code included: usi...
DocBook stylesheet error: XsltContext is needed (3 replies)
microsoft.public.dotnet.xml
Hi, I'm trying to apply DocBook's XSL (docbook xsl 1.50.0) to my XML files: XslTransform xslt new XslTransform(); xslt.Load("../docbook xsl 1.50.0/html/docbook.xsl"); Even on loading the stylesheet I get an error: System.Xml.Xsl.XsltException: '$years[1] 1' is an invalid XPath expression. System.Xml.XPath.XPathException: XsltContext is needed for this query because of an unknown function. The offe...
docbook xslt bug: System.NullReferenceException: Object reference not set to an instance of an object (9 replies)
microsoft.public.dotnet.xml
I have a docbook xml file, and am using standard docbook 1.61.3 xsl stylesheets to do xhtml transform. Transform works fine when using MSXML. When I try to do the following using asp.net 1.1: private void Page Load(object sender, System.EventArgs e) { // load content XslTransform trans new XslTransform(); trans.Load("../funcspec common/docbook xsl 1.61.3/xhtml/docbook.xsl"); XPathDocument doc new ...
MergeFilterQuery gobbles up the whole document! (2 replies, VIP)
microsoft.public.dotnet.xml
I've got a custom XPathNavigator that encapsulates a stream. I'm using xpath expressions to seek forward to various positions within the stream. Using a limited set of xpaths, I can get my stream to move forward only (no backward seeks). This works fine until a filter expression is introduced, at which point the entire stream is read before the first selection is returned. I've traced the problem ...
xslt newbie question (3 replies)
microsoft.public.dotnet.xml
I'm a ASP.NET/C# programmer new to XSLT/XPath with a bit of experience of XML. I've been reading through some stuff on XSLT and I'm struggling to think of what situations I would want to use it in. Basically XSLT is like CSS for XML files, right (i.e. setting how the XML is displayed on screen)? The only use I can think of for this is if I have an XML file and I want to display it's contents to th...
Namespaces ? (3 replies, VIP)
microsoft.public.dotnet.xml
What see sample that show xs:element where the xs namespace http://www.w3.org/2001/XMLSchema However, I see another example with xsi: where xsi http://www.w3.org/2001/XMLSchema instance What's the difference here? Are there right and wrong namespaces? Is there a global list of the ones to use? Does the namespace even need to point at http://www.w3.org.....? Or is this just the accepted way? Very a...
Getting "Visual Studio could not locate a schema for this document (2 replies, VIP)
microsoft.public.dotnet.xml
I am currently working on setting up a XML Schema for a set of rather simple documents. However, Visual Studio .Net 2003 (Version 7.1.3088) is unable to find the Schema file. I have included the "xsi:schemaLocation" attribute in the root element and pointed it to the schema file. Unfortunately, it still does not find the schema file. Here is the top sections of both the XML and XSD files: XML ?xml...
what is the language similar to XML (3 replies)
microsoft.public.dotnet.xml
Hello all Could you please tell me if there is any language that has the same functions as XML the language for documents having structures. In other words, what are languages for documents that have structures. I know that one of them is Dublin Code. What else, please help !!! Many thanks S.Hoa
excel->XML->SQL (2 replies, VIP)
microsoft.public.dotnet.xml
Hi all, I support a number of applications that store info in backend SQL databases. A project has come up where I need to get data out of Excel into one of these databases, using XML/XSLT. I am a beginner in XML/XSLT so was hoping someone would be able to give me some good info/tips on how to do this, and/or pointers to examples/documentation. I would like to do draw up something using VB.NET as ...
Using XML to retreive data from remote computer (3 replies, VIP)
microsoft.public.dotnet.xml
Hi, i would like to create a program which logs information which can then be retreived over the internet as an xml file. Basically i would retrieve the data by using an ip address, and hopefully some function call, using the machines ip address. I guess the url would be something like: mymachine.mydomain.com/temperature.xml Is this possible, or have i got the wrong idea? Would i need to run a min...
Reading ASP.NET into XML DOM (3 replies, VIP)
microsoft.public.dotnet.xml
Hi, i wanted to know if it is possible to easily read an asp.net file into an xml tree. the only major issues i found were: 1 asp: namespace not defined 2 %@ ... now the first issue is easy to solve (you just add a definition for the namespace in the file, but the second issue is bothering me, becasue it seems the %@ decleration for defining some default values/ scripting language/ is not correct ...
XSLT in VB.Net (2 replies, VIP)
microsoft.public.dotnet.xml
I am new to XSLT. AS I was browsing msdn.com for XSLT I found a an example for this. So, I tried to transform XML is DOM in VB.Net. But I am getting the following errors. Please help me. ERROR An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in WindowsApplication3.exe Additional information: The stylesheet does not contain a document element. The stylesheet may...
Serialization and elementFormDefault (3 replies)
microsoft.public.dotnet.xml
Hi ! I've got a big XML Schema defined in several files. There are files in which there are just type definitions. But i can't modify this Schema and i must use it (Don't ask me why !) ! Unfortunately, there's a problem in it, which prevents me to Serialize and Validate an XML file In XML Schema files, there's the same namespace, but the value for 'elementFormDefault' is'nt the same ! Sometimes it...
XPath with namespace (3 replies)
microsoft.public.dotnet.xml
Hello all, I am working on an Add in to the .NET framework using C#. I wanted to search the XML document using XPath but failed. The XML is like this: unit xmlns "http://www.some.info/srcML" xmlns:cpp "http://www.some.info/srcML/cpp" aaa something /aaa /unit The code I am using is as follows: XPathNavigator nav; XPathDocument docNav; XPathNodeIterator NodeIter; string fname "sth.xml"; docNav new X...
putting examples of XML into XML comments (3 replies, VIP)
microsoft.public.dotnet.xml
I am trying to put xml into the example tags of my code comments. Is this even possible? Visual studio automatically changes my examples into XML tags /// example ///EG /// code /// eg this is an example of the xml /eg /// /code
converting xml to pdf (2 replies, VIP)
microsoft.public.dotnet.xml
hi, I want to convert a xml file to a pdf document. Is there any utility available in vb .net to do this. Appache has FOP application but it is written in java, I am not sure whethere I can call this from vb .net Any suggestions ? thanks mna
Reading A TExt File (2 replies, VIP)
microsoft.public.dotnet.xml
hi all, I have text file generated as given below. root count 4 /count UF ABC.doc /UF UF man plt.doc /UF UF cov clamp.doc /UF UF cavity.doc /UF relationship PF cov blk.doc /PF PF man plt.doc /PF PF cov clamp.doc /PF PF cavity.doc /PF CF cov clamp.doc /CF CF man plt.doc /CF CF cov blk.doc /CF /relationship /root My PRoblem is that I can read the Nodes Dim elemList As XmlNodeList config.GetElementsB...
Using single XSD to validate Similar XML files (3 replies, VIP)
microsoft.public.dotnet.xml
Ok, I have 2 xml files that are really similar. They have the exact same structure exept that in one XML some element are required and in the other they are simply absent from the xml. Problem is in they are similar at 90% what I was looking for is a way to validate and say what "case" I want to test. For exemple in my XSD I somehow specify what apply to what and in the XML or simply at validation...
Multiple XSD Level for a single XML with multiple namespaces (4 replies, VIP)
microsoft.public.dotnet.xml
Ok, I am not sure if it is possible. But what I'm trying to do is validate an XML file with out having to add namespace in the xml. What I mean is lets say I have 2 XSD they have different namespaces and lvl2 is used in lvl using the import feature lvl1.xsd lvl2.xsd the xml I would like to validate would be as follow level1 level2 string hello /string Number 10 /Number /level2 level1 right now I h...
Convert HTML to XML (12 replies, VIP)
microsoft.public.dotnet.xml
How do I convert an HTML page into XML? My initial thought is to convert the page to xslt but I'm not sure how to do this. Please provide any source code examples if you have them. Thanks, Mike mcp, mcse, mcsd, mcad.net, mcsd.net
compressing XML file (2 replies, VIP)
microsoft.public.dotnet.xml
Hi, In my .NET application I save data in an XML file. When opening a project from an XML file I parse the file and recreate objects, set settings etc. The problem is that the XML file can be very big (~20Mb). How can I compress/decompress it programatically? Is there such a functionality in .NET framework or I have to code some alghorhytm for compressing/decompressing by myself? Format does not m...
Attributes on an ArrayItem (2 replies)
microsoft.public.dotnet.xml
I am trying to serialize something in the format: groups group attr1 "" attr2 "" VALUE /group group attr1 "" attr2 "" VALUE /group group attr1 "" attr2 "" VALUE /group /groups I am able to get a format like" groups group attr1 "1234" attr2 "2" / /groups using the code: [XmlArray("groups")] [XmlArrayItem("group",typeof(Group))] with the attributes declared inside of the Group class. How can I set t...
Fast XML Document Parsing? (2 replies, VIP)
microsoft.public.dotnet.xml
I currently parse an xml document using the XmlTestReader class. The xml doc contains several records, each of which contains about 10 elements. I then convert each element in a record into its equivalent C# data type (e.g. for float values, I use float.Parse(elementVal) ) I then perform calculations using each of these converted values before overwriting the values when the next xml record is par...
XML dataset (3 replies)
microsoft.public.dotnet.xml
I have made client software where users make orders. Local data is stored in xml file. Users are offline from network most of time eg. one week or month and then they connect dbserver. Problem: How to synchronize offline database to sql server??? New, modified and deleted rows must be syncronize from client to server. All help, links, tips etc. is wellcome, thank you Is there better group(s) to as...
RSS Search (4 replies)
microsoft.public.dotnet.xml
Hi! I'm looking for ideas on what would the best approach to design a search system for a RSS feeds. I will have some 50 RSS feeds (all RSS 2.0 compliant) stored locally on the web server. Now I'm wondering what would the best method to allow searching of these RSS files. Since the search will cater to multiple users the search system has to be robust and efficient. Some ideas that I have for the ...
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification