 |
|
|
 |
|
 |
Hi Ray hayes, I really like ur concept. I am looking forward to do this project.I am doing Msc computer science(Part II).Is this project will be helpful to me to do for this year.can i do this as a project for this year.also how many hours i have to work out daily for this project.how many days i will require to complete this project.what all hardware part i will require.pls tell me.pls rply.
Thanks In Advance
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi,
Its a fantastic project for XML parsing. But I have some difficluty regaring it such as
Using this code I Want to connect with SQL database & want to do some basic operations.
Please give me some idea How to do it?
Thanks & Regards,
Rajiv
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
No idea, sorry. Never used SQL in C++ and never likely to do so now. I don't even know whether there is a natural link between those two technologies.
Regards, Ray
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I have made an application. Tht requires msxml6. Now, suppose if client does not have msxml 6 installed then what can be done to install it on client machine ? Please help..... Since it searches fior the class id for creating instance of the same.
|
| Sign In·View Thread·PermaLink | 1.56/5 (3 votes) |
|
|
|
 |
|
 |
1. It compiles fine on my system (W98, MSVS 6.0, MSXML 3.0 SP 4) but I get the following linker errors:(the /lib directory IS in the search path)
XmlParserDlg.obj : error LNK2001: unresolved external symbol _IID_IXMLDOMNode XmlParserDlg.obj : error LNK2001: unresolved external symbol _CLSID_DOMDocument2 XmlParserDlg.obj : error LNK2001: unresolved external symbol _IID_IXMLDOMDocument Debug/xmlparser.exe : fatal error LNK1120: 3 unresolved externals 2. Unicode support? I am - obviously - new to XML.
Can somebody help, please? TIA,
alex
|
| Sign In·View Thread·PermaLink | 2.00/5 (3 votes) |
|
|
|
 |
|
 |
Hey, Man.
Including msxml2.lib in your project when linking.
and happy coding
--------00ooo00------------
|
| Sign In·View Thread·PermaLink | 4.00/5 (2 votes) |
|
|
|
 |
|
 |
oops! I assumed the project file that came with it was OK but the .lib was missing. Many thanks. It works now.
alex
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
It is called inter-document relationship validation. but I have no idea how to use DOM do this job? I am not sure how XPointer can be used? Or can validation be automatically handled by the XmlValidatingReader.
For instance, I created a SML schema with complex type Customer and Order in Orders.xsd. Table Order is related to Customer as it's child. If I have two xml files, one is Customer.xml, one is Order.xml. How can they be validated against Orders.xsd, it means their relationship has to be validated too. As I digged around, the impression is one xsd only can validate one XML file that contains all the related types, not XML files that has relationship defined in the XML schema.
Thanks a lot...
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
Dear Mr.Hayes, I'm a graduate of Information Management in Taiwan. Now I'm working for a project which topic is about XML files parsing. I have some trouble to complie the program. Just seems like the following: error C2061: syntax error : identifier 'IXMLDOMDocument' error C2061: syntax error : identifier 'IXMLDOMParseError'
I see there are many users asking the question. But I don't know how to insert the necessary descriptions.
(1)Include the Following Lines in the StdAfx.h File? #import named_guids using namespace MSXML; (2)add the following line using namespace MSXML; below the line #include
I already tried above two ways but still complied error. I don't know how to configurate step by step. Please help me. THX!!
Muyen
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
Whilst there have been several questions regarding this, the answer is the same everytime and if you select to see "ALL" messages rather than only the last few months you can see them.
"Out of the box" Microsoft Visual C++ version 6.0 (all service-packs) do not have XML support. You must download either the XML parser or the Platform SDK from Microsoft.
Both of these will include the necessary headings.
Regards, Ray
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
Add the following lines into your header file:
// import the MSXML parser COM #import "msxml.dll" named_guids raw_interfaces_only
using namespace MSXML;
Then it works!
Turkey
|
| Sign In·View Thread·PermaLink | 5.00/5 (2 votes) |
|
|
|
 |
|
 |
Dear Mr.Hayes, I'm a graduate of Bioinformatics in China. Now I'm working for a project which topic is about XML files parsing. What I should do is to thansform a structured file into an XML file and to parse it to visualize its some feature part. But I had never deal with an XML file. That's a new thing for me.
I had find and download your code of "XML Parser Demo" in http://www.codeproject.com. But I can't debug it in my VC++ 6.0. The error is followed: F:\Xml\sample\IExmlparser\xmlparser\XmlParserDlg.cpp(92) : error C2065: 'IXMLDOMDocument' : undeclared identifier. But I really include "msxml.h".What's more, the number of the errors is unchanged when I disinclude the "msxml.h". Please give me your kind option!
I'm an XML beginner! I had never run a project parsing XML successfully. It's too worrying!My operating system is Windows 2000 professional, working studio is VC++6.0. Please tell me how to include the MSXML interface in my project. I'm wandered about the msxml.h(msxml2\3) ,msxml.dll(msxml2\3\4) and msxml.lib. Give me your simple way to use them!Thanks a lot!
Waiting for your request online!
sterding
|
| Sign In·View Thread·PermaLink | 2.50/5 (2 votes) |
|
|
|
 |
|
|
 |
|
 |
use underside sentence to replace #include "msxml.h" #import "msxml.dll" named_guids raw_interfaces_only using namespace MSXML; then you can work it!!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
keep up the good work. One question: How do I retrieve values of all elements that have the same tagname?
Hush..Hush.. thought I heard you calling my name now...
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
You should use the XPath aware functions. The two functions I use to do this are:
selectNodes selectSingleNode
The former being able to return multiple matches in a set (XMLDOMNodeList).
XPath is very powerful and would take a lot to explain here, but briefly, if you wanted to find all "Name(s)" that are children of "People" you can search for "*/People/Name". This wouldn't match any "Name(s)" that belong to, for example, a "Building".
If you use the XMLDOMNodeList, you then have iterators through the results to walk all of the matches. "selectSingleNode" claims to only return the first match if multiple possibilities exists, I only call this function myself if I know the Schema enforces this, otherwise I use the "selectNodes" function.
Regards, Ray
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
almost the year anniversary of your question . . .
ValList = xDB->m_pDomDocument->getElementsByTagName("VAL"); // get all the VAL's into a list
that is path "unaware" - it doesn't matter what the path is. Maybe not good practice, but it works.;P
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Enviroment: VC 6.0-SP5 / XML SDK 3.0 Error: XmlParserDlg.cpp(342) : error C2660: 'nextNode' : function does not take 1 parameters Can You help me ? Thanks a lot. Best regards.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
A quick download of the code and a recompile works fine on my machine. Further, the corresponding entry for "nextNode" on an IXMLDOMNode does indeed only take a single parameter.
Could you check the following: 1) You have the XML 3.0 header files of msxml.h or msxml2.h included higher in your search order than the "default" include files.
2) If so, search the msxml.h or msxml2.h file for an entry where "nextNode" takes a pointer to an IXMLDOMNode*. My copy of msxml2.h has this on line 6880, where you can see that it takes a single parameter.
virtual /* ... */ HRESULT STDMETHODCALLTYPE nextNode( /* ... */ IXMLDOMNode __RPC_FAR *__RPC_FAR *nextItem) = 0;
Regards, Ray
|
| Sign In·View Thread·PermaLink | 1.67/5 (3 votes) |
|
|
|
 |
|
|
 |
|
|
 |
|
|
 |