PDA

View Full Version : iDrop package XML inline with HTML?


lcamara
2005-07-07, 12:53 AM
Not sure what forum this goes in - feel free to toss it around until it finds a home or gets some answers. :)

I want to implement iDrop with the XML Package definition as part of the file (specifically in-line w/ the post). Example "chair.xml":

<?xml version="1.0"?>
<package>
<proxy defaultsrc="iDropButton.gif"></proxy>
<dataset defaultsrc="chair.dwg"></dataset>
</package>

Instead of having this as a separate file, I want it as part of the html. (I'm using ASP to generate the pages, and I'm not sure about how to automatically generate XML files). I was digging around the AutoCAD Publish-to-Web output, and noticed that they were using "<xml>" tags between the head and body tags, though it was for the publish-to-web xml not the idrop. So I tried this:

...
</head>

<xml id="chair_xml">
<?xml version="1.0"?>
<package>
<proxy defaultsrc="iDropButton.gif"></proxy>
<dataset defaultsrc="chair.dwg"></dataset>
</package>
</xml>

<body>
...

and changed the package parameter value to this:

<param name="package" value="chair_xml"/>

It didn't work. I was wondering if there's a way for it to work, and if it can work with the "<xml" tag inside the body (just before the "<object" tag).

FYI, I'm using Snitz2000 (open-source ASP forum) to create a typical detail library with DWF preview and iDrop of the detail into AutoCAD, with the ability of the Engineers to comment on the typical details, suggest improvements, etc. I'm creating custom "forum code tags" that will get replaced with the idrop & dwf code, and I'd like to minimize additional manual steps (although I could make a lisp routine to do it, I'd rather have it dynamically linked to the drawings so I can add options to the XML later).

scott.sheppard
2005-07-07, 08:24 PM
This will not work. As you have figured out, the source parameter needs to be a file reference.

mark.webb
2005-07-08, 07:49 PM
Hi there.

I just checked into the source code, and can confirm that a file reference to the XML package is all that is supported. Unfortunately embedded XML is not possible with the current implementation.

Best regards
Mark Webb, Software Engineer,
BSD, Autodesk

lcamara
2005-07-09, 12:20 AM
Thanks guys, for your quick replies.

...embedded XML is not possible with the current implementation...
And I guess that also means that I shouldn't hold my breath for it. :) I assume it would be trivial to implement support for embedded XML, but that it would require a new release of idrop - and that probably wouldn't fly unless there were also some nifty new features (I can't think of anything else).

I'll work around it.

Lionel

Opie
2008-06-11, 03:36 AM
Thanks guys, for your quick replies.


And I guess that also means that I shouldn't hold my breath for it. :) I assume it would be trivial to implement support for embedded XML, but that it would require a new release of idrop - and that probably wouldn't fly unless there were also some nifty new features (I can't think of anything else).

I'll work around it.

Lionel
I realize this is a really old thread, but how did you come out with your work around?