|
I'm looking at getting a different tool to help me process the xml comments in our C# code. I was using NDoc (cool, but doesn't seem to support .NET 2003), then tried Tee Gopher (works, but very, very weak content editor).
Does anyone have recommendations for another tool?
Thanks in advance.
Sincerely,
Mark
|
|
|
|
|
I thought that XML documentation for C# was intrinsically supported in .NET, but not for VB.NET.
I use it all the time in SharpDevelop.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
Well, the extraction of the comments to an XML file is supported. But the processing of that file into documentation (an online help file) isn't. That's the type of tool I'm looking for. For example, NDoc will take the comments and the assemblies and generate a help file document that's all hyperlinked together just like the MSDN documentation is for all the classes and interfaces in the assemblies. The remarks, etc are filled in by the comments in the code.
Mark
|
|
|
|
|
Here's the info I was looking for:
http://www.sys-con.com/dotnet/readerschoice2003/liveupdate.cfm?BType=30
The link above has number of these tools.
(I post this here in case these threads get archived so if someone searches for the same topic they'll find the answer).
|
|
|
|
|
Okay, i have a problem...............i need to convert xml data into html data because i need it to be viewable in outlook and outlook only supports html. Thanks !!!
Any help would be greatly appreciated!!
Da Intern
|
|
|
|
|
XSL Tester[^]. That's what I use.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
|
I wrote a function that gets a attribute value that is in hex. Am I reinventing the wheel? The problem is that I can't get it to work.
Here was my first attempt which failed because it didn't convert to hex (even though the the type is xsd:hexBinary):
HRESULT hr;
CComVariant value;
hr = pElement->getAttribute( CComBSTR( sName ), &value );
hr = value.ChangeType( VT_UINT );
Here is my second attempt which works for values using digits '0'-'9' but fails for values using digits 'a'-'f' (and 'A'-'F') (VarParseNumFromStr returns DISP_E_TYPEMISMATCH):
HRESULT hr;
CComVariant value;
NUMPARSE np = { 10, NUMPRS_HEX_OCT|NUMPRS_USE_ALL, 0, 0, 4 };
unsigned char digits[10];
CComVariant vHex;
hr = pElement->getAttribute( CComBSTR( sName ), &value );
hr = VarParseNumFromStr( value.bstrVal, GetUserDefaultLCID(),
NUMPRS_HEX_OCT|NUMPRS_USE_ALL,
&np, digits );
np.nBaseShift = 4;
hr = VarNumFromParseNum( &np, digits, VTBIT_UI4, &vHex );
hr = vHex.ChangeType( VT_UINT );
Anyone know what is wrong or what the right way to do this is?
|
|
|
|
|
How to insert data from XML file into SQL server database using javascript/vbscript or using ASP.
|
|
|
|
|
Hi,
I've got a strange problem. I have a multithreading Win32 MFC application used MSXML. All XML-related procedures (loading, parsing and etc) are worked in a separated thread started with _begingthread().
This thread looks like as shown below. When this thread calls IXMLDOMDocument::load() to load an existed XML document from a file, this will stop an opening all Microsoft Office 2000 documents (Word,Excel and etc).
This problem appears only under Windows 9x/ME.
What's wrong? Help me!
void XMLTrafReportThreadFunction(void *)
{
::CoInitializeEx(NULL,COINIT_MULTITHREADED);
IXMLDOMDocumentPtr XmlDocPtr;
_bstr_t bstrXMLReport(lpszFilename);
VARIANT_BOOL vtResult;
HRESULT hr = XmlDocPtr.CreateInstance(MSXML::CLSID_DOMDocument);
if (FAILED(hr)) return 0;
vtResult=XmlDocPtr->load(bstrXMLReport);
...
...
}
Yours sincerely,
Alex Bash
|
|
|
|
|
Hi,
I have created a simple MFC/C++ Program that uses MS XML 3.0 and Below is the code as well as XML file. Its a very smal XML file and I need to parse it and get info like
ID = "DEV01"
Name = "robotest" etc But, I am just getting tag names and I am not getting Values
Can anyone point out where I am going wrong ??? XMLPad.exe parses it properly !! Help..
XML file is:
<DEVID ID = "DEV01" NAME = "robotest">
<CAPABILITY VALUE = "0x051" />
<CHAN NUMBER = "10" />
<CHAN STRENGTH = "2" />
</DEVID>
////////////// MFC Code (COM)////////////////
#import <msxml.dll> named_guids
using namespace MSXML;
IXMLDOMDocumentPtr m_plDomDocument; //pointer to the xml document
IXMLDOMElementPtr m_pDocRoot; //pointer to the root
::AfxOleInit();
::CoInitialize(NULL);
HRESULT hr = m_plDomDocument.CreateInstance(MSXML::CLSID_DOMDocument);
if(FAILED(hr))
{
AfxMessageBox("Error!!");
}
...
...
CFileDialog fd(TRUE,NULL,NULL,OFN_HIDEREADONLY|OFN_FILEMUSTEXI
ST,"XML Files (*.xml)|*.xml||", this);
fd.m_ofn.lpstrTitle = "Choose XML File";
if(fd.DoModal()==IDOK)
{
CString file = fd.GetPathName();
_bstr_t filename = file.AllocSysString();
variant_t vResult;
vResult = m_plDomDocument->load(filename);
if((bool)vResult==TRUE)
{
m_pDocRoot = m_plDomDocument->documentElement;
AfxMessageBox("Document Loaded !!");
AfxMessageBox(m_pDocRoot->xml);
HTREEITEM hxmlRoot = TVI_ROOT;
BuildTree(m_pDocRoot, &m_tree, hxmlRoot);
}
else
{
AfxMessageBox("Document Failed!!");
}
}
.....
void CXMLDialog::BuildTree(IXMLDOMNodePtr pParent, CTreeCtrl *m_pTree, HTREEITEM hParent)
{
HTREEITEM hChild;
InsertNode(pParent, m_pTree, hParent, hChild);
for(IXMLDOMNodePtr pChild = pParent->firstChild; NULL != pChild; pChild = pChild->nextSibling)
{
BuildTree(pChild,m_pTree,hChild);
}
}
...
void CXMLDialog::InsertNode(IXMLDOMNodePtr pParent, CTreeCtrl *m_pTree, HTREEITEM hParent, HTREEITEM &hChild)
{
if(pParent->nodeType == MSXML::NODE_TEXT)
{
m_pTree->InsertItem(pParent->text, hParent, TVI_LAST);
}
else
{
hChild = m_pTree->InsertItem(pParent->nodeName, hParent, TVI_LAST);
}
}
|
|
|
|
|
Attributes aren't part of the child tree as you are trying to use it. Attributes are considered separate by the DOM and need to be accessed via IXMLDOMElement::getAttribute or IXMLDOMNode::attributes, with the later being best for you usage as you can iterate over all available attributes.
|
|
|
|
|
Hello,
I have created XSD file using Visual Studio .NET and
was trying to load it using your "XML Data Editor".
It does not react at all. The XSD file is very simple.
What I did : I took yours sale5.xml into VS.NET and created
schema. Then was trying to load it into your Data Editor.
Please advise.
Thank you in advance.
Oleg.
|
|
|
|
|
Hi everyone,
I'm new to XML and my question is how does one use the Expat library to look for let’s say all of the authors in a XML file.
Any help would be greatly appreciated.
Ken
|
|
|
|
|
Expat uses a callback mechanism to parse documents (similar to SAX). So, basically you make a callback function for elements that checks if the element is an "author" (and does something with that data), you register that handler, then you start the parser.
There is a good tutorial on getting started with Expat here:
"Using Expat" by Clark Cooper.
- Mike
|
|
|
|
|
Just looking for some recommendations here -- I am gonna implement some XML for a network protocol, maybe using SOAP.
Any recommendations for a fast XML parser? Doesn't need to be fancy.... but does need to be more than a token parser....
Thanks in advance!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Peter Weyzen
Santa Cruz Networks / VidiTel / Reality Fusion (pick a name)
|
|
|
|
|
|
Thank You So Much!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
Santa Cruz Networks
|
|
|
|
|
I have a class that contains elements:
class MyClass {
int var1;
string var2;
}
I'm using the XmlSerializer class to output objects of MyClass to an XML stream and I'm trying to work out how to get the output to be like:
...
<var1>Value 1</var1>
<prefix:var2>Value 2</var2>
...
I've played around with the XmlElementX attributes classes but no luck. The XmlElement.Prefix property seems to be one solution, except that the compiler barfs saying Prefix isn't a member (contradicting the docs and intellisese).
Any ideas?
cheers,
Chris Maunder
|
|
|
|
|
|
Thanks!
cheers,
Chris Maunder
|
|
|
|
|
Could anyone explain to me how to get the XML file from the Seti@Home stats webservice into a dataset. I keep getting errors that I can't remember exactly, but something along the lines of it can't be placed in a single table relationship.
So is it the way the xml file received from the webservice not workable with a dataset? Is there anyway I can make parts of it go into seperate tables?
Any insight on this would be very helpful.
Steve
McLenithan
Is Bert Evil? | Homer: "Hello, operator, gimme the number for 911!"
|
|
|
|
|
I am working on an ASP.NET application using C#.
In my XMLDocument, I have a node (that contains other nodes within) that I want to move to another location in the tree. How do move that node AND everything it contains?
Is there a MoveNode() method? All I see is a ReplaceChild() method. Will that do the job? The only way I could think of using the ReplaceChild() method is the create a new XMLNode at the new desired location, and then replacing that node with the old one. Then use RemoveChild() to delete the old node. Any better ways? Thanks.
|
|
|
|
|
Try something like:
XmlNode MoveNode(XmlNode nodeToMove, XmlNode newParent)
{
if (null == nodeToMove) throw new ArgumentNullException("nodeToMove");
if (null == newParent) throw new ArgumentNullException("newParent");
if (nodeToMove.OwnerDocument == newParent.OwnerDocument)
{
XmlNode temp = newParent;
while(null != temp)
{
if (temp == nodeToMove)
throw new InvalidOperationException();
temp = temp.ParentNode;
}
if (null != nodeToMove.ParentNode)
nodeToMove.ParentNode.RemoveChild(nodeToMove);
return newParent.AppendChild(nodeToMove);
}
else
{
XmlNode newNode = newParent.OwnerDocument.ImportNode(nodeToMove, true);
if (null != nodeToMove.ParentNode)
nodeToMove.ParentNode.RemoveChild(nodeToMove);
return newParent.AppendChild(newNode);
}
}
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
|
|
|
|
|
How can I fullfil the xml information for a enumerated type?
CODE_________________________________________________
public enum SegmentationTypes {SingleFrame = 1, FixedSize = 2, BottumUp = 3, Cumulation = 4, ShotDetection= 5, MedianIncremental = 6, Filtering = 7};
END CODE______________________________________________
When I insert the "///" I just get the summary field, and during compilin I get an error: "Missing XML comment for publicly visible type or member SegmentationTypes.SingleFrame" for every type in my enumerated type
Some suggestions?
|
|
|
|