• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Has anyone used xmllib2 in an X-Code project?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Has anyone used xmllib2 in an X-Code project?


  • Subject: Has anyone used xmllib2 in an X-Code project?
  • From: John Draper <email@hidden>
  • Date: Fri, 12 Nov 2004 03:26:10 -0800

Obviously, there is a Gotcha... But I thought I followed the proper directions for using this
Library in an X-Code project, but....


Here is what I did....

I found the file "libxml2.dylib" using find file in the finder. I dragged it and dropped it into the X-Code outline list on the left.

It showed up as a Framework, and I put it in with the other frameworks.

Next,  I found the directory for the header files,  dragged and dropped it
into the same Outline list in the X-Code main window.

A dialog showed up with the following...

Checkbox - Copy items into destination folder (if needed) (I tried checked and unchecked)
Reference type: default
Text Encoding: Western


Recursively create groups for any added folders - (picked)
Create folder references for any added folder - (not-picked)

Actually - I tried both ways - nether worked of course.

#import "Controller.h"

#include <stdio.h>
#include "libxml/encoding.h" <----- Error is here Says: libxml/xmlversion.h no such file.


// NOTE: Of course it was in there.... // I copied the "libxml" directory into project directory.
//
// 1) changing include to import
// 2) <> instead of ""
// NEVET GOT TO CODE BELOW!!!
// can ANYONE help me?


@implementation Controller

- (IBAction)ParseXML:(id)sender
{
NSBeep();
char *uri = "http://url4xml.com"; <------ BOGUS (I cannot give real one out - it returns XML)
xmlTextWriterPtr writer;
// This is where I want to put my test code.
/* Create a new XmlWriter for uri, with no compression. */
/* Create a new XmlWriter for uri, with no compression. */
writer = xmlNewTextWriterFilename(uri, 0);
if (writer == NULL) {
printf("testXmlwriterFilename: Error creating the xml writer\n");
return;
}
}


NOTE:  This was ver 1.5 X-Code running on 10.3 Panther.

John
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Has anyone used xmllib2 in an X-Code project?
      • From: Brian Smith <email@hidden>
  • Prev by Date: Re: Custom palette questions
  • Next by Date: Re: My bug or Apple's?
  • Previous by thread: Looking for a UK developer
  • Next by thread: Re: Has anyone used xmllib2 in an X-Code project?
  • Index(es):
    • Date
    • Thread