From: Sam S. <sd...@gn...> - 2000-10-01 17:56:21
|
> * In message <NOE...@st...> > * On the subject of "Parsing SVG with XML parser" > * Sent on Sun, 1 Oct 2000 03:44:15 -0700 > * Honorable "Jonathan Siegel" <jon...@st...> writes: > > I am interested in using the CLOCC CLLIB XML parser to parse an SVG > file, but have not been able to find any documentation on the The parser reads a file and returns a list of XML-OBJ structs. > parser. I've attempted to just run the XML parser on the SVG file, and > get this error: > > USER(34): (cllib:xml-read-from-file "~/testbox.svg") > Error: File #p"/home/jonathan/testbox.svg" does not exist. > ->(OPEN "~/testbox.svg" :DIRECTION ...) > (ORG.CONS.CLOCC/SDS/CLLIB:XML-READ-FROM-FILE "~/testbox.svg") apparently, we cannot find the file. is it there? is it readable? what does `probe-file' say? > Anyone have any suggestions on how to get this to work? 1. "~" is a shell shortcut. while ACL, apparently, understands it, most other lisps I know of don't, so you might be better off using explicit things like (merge-pathnames "test.svg" (user-homedir-pathname)) 2. please do not hesitate to ask questions on the list. -- Sam Steingold (http://www.podval.org/~sds) Micros**t is not the answer. Micros**t is a question, and the answer is Linux, (http://www.linux.org) the choice of the GNU (http://www.gnu.org) generation. MS Windows vs IBM OS/2: Why marketing matters more than technology... |