Editing an XML FIle TextEdit?

How can I edit an XML file?
When I open an XML file in TextEdit, all the tags get stripped out?
When I double click on my XML files, "Dashcode" starts up but always hangs, making it useless for this purpose (whatever it is).

When I open an XML file in TextEdit, all the tags get stripped out?
This a bit odd: I tried opening an xml file in TextEdit with the default for a new document set to either plain or rich text, and with 'ignore HTML commands' and 'ignore Rich Text' commands' checked or unchecked and was always able to open it showing the tags, either by dragging it to the icon or using the File>Open method. It even worked if I removed the .xml extension (and even with the .txt extension). How are you opening it?
On the off-chance that there is something odd about your file, download the xml file I was testing from this link:
https://files.me.com/rfwilmut/kdmnuu
(it's zipped) and see if you can open that.

Similar Messages

  • How to edit an XML file?

    Guys, I have a podcast in iTunes, I want to start to promote it. In order to do this, I think I will have to put tags in the XML file for different sites and I would like to know how to edit this. Does anyone have any good places for me to check out how to do this?
    Thanks!

    Vinnie, thanks for getting back to me on this, I am pulling my hair out!
    What FAQ are you speaking of? The one in iTunes or someplace on this board?
    By claim, what I mean is this. Lets say I try to add my podcast to Podcast Alley's directory. If I copy and paste my RSS feed in there, it says that it needs me to add their "tag" or whatever in my RSS so they know it is my podcast. They need me to add this line in the XML file I think to "claim" my podcast so it will show up in their directory. This seems to be a common thing with other sites as they give me some XML code to add to my RSS also.
    Make sense at all?

  • Editing a XML file with PHP and HTML or AS2

    Hi webmates...
    I have been looking for a good tutorial on managing an XML
    file through Flash (AS2) or HTML and PHP... but all of what I have
    found at the moment are very confusing and incomplete... the
    examples actually do not work ok...
    Would anyone mind on addressing me any good place where I can
    find nice tutorials for this ? perhaps any example ? I wil really
    appreciate it, My web is already reading the XML file to load
    data... but I also need to create an application for editing this
    XML... thanx in advance...

    I have no experience with any decompilers beyond possibly attempting to trial one once.  The only one I have seen recommended is made by Sothink.
    Here is a link to a page with a tool that has an interface you can use to determine various properties of an swf file, including the Actionscript version.
    http://blog.sitedaniel.com/2009/11/swf-info-width-height-swf-version-actionscript-version- framerate/

  • How to edit an XML file in ios5.1 ?

    Hi,
    I have an large xml file . I need to split it into 3 small ones .For reading the XML i am using NSXMLParser . How to write xml file ? If there is need of edit some tag , how to do it ?Please guide me ....
    Thanks
    Amiya

    I don't know what your model is but if I assume a straighforward tree-structured model PresetInfo > Modality > Body, this code is the design pattern I usually use.  If you don't actually need to load a model, but instead just extract a specific data element, look at the XPath query in PresetInfo.parseXmlElement, and how I get attribute and element values in the other parseXmlElements.
    The model interface.  I used arrays for the lists, if you need keyed access to list elements, you could use dictionaries.  The top-level class PresetInfo contains methods to read the XML from a file.
    @interface ModelBase : NSObject
    - (id)initWithXmlElement:(GDataXMLElement *)element;
    - (void)parseXmlElement:(GDataXMLElement *)element;
    @end
    @interface PresetInfo : ModelBase
    @property NSMutableArray *modalities;
    - (id)initWithPath:(NSString *)path;
    - (id)initWithXmlString:(NSString *)xmlString;
    @end
    @interface Modality : ModelBase
    @property NSString *type;
    @property NSMutableArray *bodies;
    @end
    @interface Body : ModelBase
    @property NSString *part;
    @property NSInteger ww;
    @property NSInteger wl;
    @end
    The model implementation.
    @implementation ModelBase
    - (id)initWithXmlElement:(GDataXMLElement *)element
        if (self = [self init]) {
            [self parseXmlElement:element];
        return self;
    - (void)parseXmlElement:(GDataXMLElement *)element {
        [NSException raise:NSInternalInconsistencyException format:@"You must override %@ in a subclass", NSStringFromSelector(_cmd)];  // Objective-C has no abstract methods
    @end
    @implementation PresetInfo
    - (id)init
        if (self = [super init]) {
            self.modalities = [[NSMutableArray alloc] init];
        return self;
    - (id)initWithPath:(NSString *)path
        NSError *error = nil;
        NSStringEncoding *usedEncoding = nil;
        NSString *xmlString = [NSString stringWithContentsOfFile:path usedEncoding:usedEncoding error:&error];
        if (!xmlString)
            NSLog(@"Error reading XML file: %@", [error localizedDescription]);
        return [self initWithXmlString:xmlString];
    - (id)initWithXmlString:(NSString *)xmlString
        NSError *error = nil;
        GDataXMLDocument *xmlDoc = [[GDataXMLDocument alloc] initWithXMLString:xmlString  options:0 error:&error];
        if (!xmlDoc)
            NSLog(@"Error creating XML document: %@", [error localizedDescription]);
        return [self initWithXmlElement:xmlDoc.rootElement];
    - (void)parseXmlElement:(GDataXMLElement *)element
        NSError *error = nil;
        NSArray *nodes = [element nodesForXPath:@"presetinfo/modality" error:&error];
        if (!nodes) {
            NSLog(@"Response not found: %@", [error localizedDescription]);
            return;
        for (GDataXMLElement *element in nodes)
            [self.modalities addObject:[[Modality alloc] initWithXmlElement:element]];
    @end
    @implementation Modality
    - (id)init
        if (self = [super init]) {
            self.bodies = [[NSMutableArray alloc] init];
        return self;
    - (void)parseXmlElement:(GDataXMLElement *)element {
        GDataXMLNode *node = [element attributeForName:@"type"];
        if (node) self.type = node.stringValue;
        NSArray *nodes = [element elementsForName:@"body"];
        for (GDataXMLElement *element in nodes)
            [self.bodies addObject:[[Body alloc] initWithXmlElement:element]];
    @end
    @implementation Body
    - (void)parseXmlElement:(GDataXMLElement *)element {
        GDataXMLNode *node = [element attributeForName:@"PART"];
        if (node) self.part = node.stringValue;
        node = [element attributeForName:@"WW"];
        if (node) self.ww = [node.stringValue integerValue];
        node = [element attributeForName:@"WL"];
        if (node) self.wl = [node.stringValue integerValue];
    @end
    Example of loading your XML into the model and showing the data.  This assumes the containing class (for example a view controller) has a property PresetInfo *presetInfo and the XML you posted is in a file presetinfo.xml.
    // load the XML into the model
    NSString *path = [[NSBundle mainBundle] pathForResource:@"presetinfo" ofType:@"xml"];
    self.presetInfo = [[PresetInfo alloc] initWithPath:path];
    // verify the model loaded correctly
    for (Modality *modality in self.presetInfo.modalities) {
        for (Body *body in modality.bodies) {
            NSLog(@"Modality Type = %@; Body Part = %@; WW = %d; WL = %d", modality.type, body.part, body.ww, body.wl);

  • Encore & Adaptive Streaming: Editing the .xml file

    I have fms 3.5 & 4.0. using dynamic/adaptive streaming with html & smil or f4m...no problem.
    I have flash projects made with encore cs5. editing the file authoredcontent.xml to change the media source on the server is easy.
    But how is the media source area configured to use adaptive? ideas?
    Here is the code:
    <!-- Chapter 1 -->
    <Media src='rtmp://fms.acpe.org/vod/mp4:_PGC_Npgc_entryPoint_Pbp_10.24198913574219.f4v' name='Chapter 1' xmpFile='Sources/_PGC_Npgc_entryPoint_Pbp_1.xml' type='video' startTime='0' duration='1835.03'/>
    <Action type='DisplayItem' target='3'/>
    The xmp file is used to search the associated text. no impact

    This Apple document explains the difference between the Library file and the xml file:
    http://docs.info.apple.com/article.html?artnum=93732
    The xml file is actually an exported version of the Library file that iTunes automatically creates.
    If you want to change the playcounts, go to this site:
    http://www.dougscripts.com/itunes/index.php
    and do a search for playcount and you'll see a script to change playcounts.

  • Edit an XML file with SAX

    Dear all, I am so confused�.
    I have been trying for the last few days to understand how sax works� The only thing I understood is:
    DefaultHandler handler = new Echo01();
    SAXParserFactory factory = SAXParserFactory.newInstance();
            try {
                out = new OutputStreamWriter(System.out, "UTF8");
                SAXParser saxParser = factory.newSAXParser();
                saxParser.parse(file , handler);
            } catch (Throwable t) {
                t.printStackTrace();
            System.exit(0);
        }Ok, I assign the SAXParser the xml file and a handler. The parser parses and throws events that the handler catches. By implementing some handler interface or overriding the methods of an existing handler (e.g DeafultHandler class) I get to do stuff�
    But still, suppose I have implement startElement() method of DefaultHandler class and I know that the pointer is currently placed on an element e.g. <name>bob</name>. How do I get the value of the element, and if I manage to do that, how can I replace�bob� with �tom�?
    I would really appreciate any help given� just don�t recommend http://java.sun.com/webservices/jaxp/dist/1.1/docs/tutorial/ because although there are interesting staff in there, it does not solve my problem�

    Maybe SAX is not the right tool for you.
    With SAX, you implement methods like startElement and characters that get called as XML data is encountered by the parser. If you want to catch it or not, the SAX parser does not care. In your case, the "bob" part will be passed in one or more calls to characters. To safely process the data, you need to do something like build a StringBuffer or StringBuilder in the constructor of the class, and then in the startElement, if the name is one you want to read, set the length to zero. In the characters method, append the data to the StringBuilder or StringBuffer. In the endElement, do a toString to keep the data wherever you want.
    This works for simple XML, but may need to be enhanced if you have nested elements with string values that contain other elements.
    On the other hand, if your file is not huge, you could use DOM. With DOM, (or with JDOM, and I would expect with Dom4J -- but I have only used the first two) you do a parse and get a Document object with the entire tree. That allows you to easily (at least it is easy once you figure out how to do it) find a node like the "name" element and change the Text object that is its child from a value of "bob" to "tom". With DOM, you can then serialize the modified Document tree and save it as an XML file. SAX does not have any way to save your data. That burden falls to you entirely.
    Dave Patterson

  • Editing an xml file?

    Hi there. I have slideshows that are managed by simple xml documents. In my old system, clients would simply edit the xml doc, but I have not found a way to do this in InContext. Can anyone help?

    Hi erinclark,
    InContext Editing can only edit pages with valid HTML mark-up with any of the following doctypes:
    "-//W3C//DTD HTML 4.01 Transitional//EN"
    "-//W3C//DTD HTML 4.01//EN"
    "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "-//W3C//DTD XHTML 1.0 Strict//EN”
    "-//W3C//DTD XHTML 1.1//EN"
    (from: http://labs.adobe.com/wiki/index.php/InContext_Editing#Release_Notes)
    You may also notice that when you create a new XML document in Dreamweaver the options to insert InContext Editing regions are disabled.
    Best regards,
    Corey

  • EP6 sp2: Editing authschemes.xml file for Client Certificates - Urgent

    Urgent Help Needed..
    I am trying to modify the authschemes.xml file so that i can have Client Certificate Authentication. Has anyone done this before? I am unable to get client certificate authentication working. I also need to get rid of form based logon screen?
    Please help.
    regards
    anton

    Hi detlev,
    I followed all the instructions i can find but nothing explains what exactly i need to implment to request client certificates in the xml file.
    I want portal to request the client cert as soon as they hit the portal webpage. I am also going through IIS6 with iisproxy module installed.
    I am using verisign certificates, i configured J2ee engine to request the root cert for the client cert for the SSL port but that does not work. I get the dialog box requesting in IE asking me to choose a cert but i can make any selection its greyed out. After i say yes it connects to me to the portal logon screen.
    Here is the authscheme that i am using.
    <authschemes>
            <!--  authschemes, the name of the node is used -->
            <authscheme name="uidpwdlogon">
                <!-- multiple login modules can be defined -->
                <loginmodule>
                    <loginModuleName>com.sap.security.core.logon.imp.CertLoginModule</loginModuleName>
                    <controlFlag>SUFFICIENT</controlFlag>
                    <options></options>
                </loginmodule>
                <loginmodule>
                    <loginModuleName>com.sap.security.core.logon.imp.DefaultLoginModule</loginModuleName>
                    <!-- specifying whether this LoginModule is REQUIRED, REQUISITE, SUFFICIENT, or OPTIONAL -->
                    <controlFlag>REQUISITE</controlFlag>
                    <options></options>
                </loginmodule>
                <priority>21</priority>
                <!-- the frontendtype TARGET_FORWARD = 0, TARGET_REDIRECT = 1, TARGET_JAVAIVIEW = 2 -->
                <frontendtype>2</frontendtype>
                <!-- target object -->
                <frontendtarget>com.sap.portal.runtime.logon.default</frontendtarget>
            </authscheme>

  • Editing large xml files

    Hi,
    I have an xml file of 30M. I use the following code to delete the tags with no childs. But jdom simply does not build the document and
    with out any exception the application goes out of this method.
    The same code works fine for smaller file e.g. 9MBs?
    My question.
    1. Is there any file size limit?
    2. What can be the solution to this?
    3. What is the best way to remove tags with no childs from xml files?
    Many thanks

    You an try these guys as they claim to handle large files well:
    http://vtd-xml.sourceforge.net/

  • Edit diameter.xml file using WLST

    Hi,
    I need to automate creating new Peers like RfSimulator and Rocharging Peers for hssclient using WLST Script.
    Please can anyone help me in creating a WLST script(.py) for the Example below.
    <?xml version='1.0' encoding='utf-8'?>
    <diameter xmlns="http://www.bea.com/ns/wlcp/diameter/300" xmlns:sec="http://www.bea.com/ns/weblogic/90/security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wls="http://www.bea.com/ns/weblogic/90/security/wls">
    <configuration>
    <peer>
    <host>RfSimulator</host>
    <address>localhost</address>
    <port>3900</port>
    <protocol>tcp</protocol>
    <watchdog-enabled>true</watchdog-enabled>
    </peer>
    <route>
    <name>RoCharging</name>
    <realm>bea.com</realm>
    <application-id>4</application-id>
    <action>relay</action>
    <server>ocf</server>
    </route>
    <route>
    </configuration>
    </diameter>

    xml or plist , just the extension differs.(Both are Extended Markup Language).
    If u want to edit it manually - u can use property list editor (which is in XCode )
    or u can open with dashcode , which can be edited easily.
    If ur question was to edit dynamically.
    U can do that with write to file functionality.
    For example u may check this.
    http://www.iphonedevsdk.com/forum/iphone-sdk-development/1613-read-write-create- data-files.html

  • Tags Help!  How do I edit my xml file?  Where do I find my xml file?

    I understand I have to edit tags to provide more information to iTunes, but how? Where to begin?

    http://www.podcast411.com/howto_1.html
    Here is a tutorial that breaks down what is needed in your RSS feed and why both for the RSS specs and the iTunes specs.
    Per finding your RSS feed - what service are you using? Also what is your iTunes page?
    Rob @ podCast411

  • Can I edit the system file Manifest.XML in Word for Windows? (there's a reason for doing this)

    I renamed a file directory containing several PDFs. Consequently, Adobe Digital Editions says these files are missing when I try to open them and look at notes I made. There seems to be an obvious solution, but I'm unfamiliar with XML and don't want to screw things up. The file locations and a lot of other information for Digital Editions is in an XML file called Manifest. If I can edit the XML file to show the correct directory, I expect I'd be able to see these files and recover my notes. I'm unsure what Word for Windows may do (e.g., add or delete characters) when I edit and save the new Manifest.  That might corrupt the Manifest and be extremely counterproductive.
    Is editing the file locations in Word for Windows safe, so long as Digital Editions isn't open when I do my editing? 

    I can confirm that Notepad++ can happily edit manifest.xml files, but as Jim_Lester says, make a backup (especially if you are not used to XML).
    You may well find that if you Open the .epub files from their new location explicitly from ADE (ctrl-O) that you will both be able to read documents and see the notes.
    I can't vouch for that; but if it works I'd recommend it over editing the manifest file.

  • How to edit xml file particular value. and how to send xml file over ip address 192.168.2.10 using ftp

    how to edit xml file particular value. and how to send xml file over ip address 192.168.2.10 device using ftp through Ethernet

    Hello
    For using FTP function in LabVIEW, I recommend you to check this document: FTP Basics
    Also, take a look at FTP Browser.vi, which is available at the Example Finder.
    To edit a XML file, try to use VIs in XML palette. Maybe Write to XML.vi helps you.
    Post your current VI if possible.
    Regards
    Mondoni

  • Maintaining or Editing xml files

    Hi All,
            I am migrating a web application from tomcat to SAP WAS CE. In this web application there are some .xml files, porperty files. These xml files contains information like path of the log files, server urls, dabase information. Now the problem is when I will transport this web application to quality server then all these paths of log file, server urls, dabase info will be of Development server, so I would have to modify these .xml files on quality and production server.
               Is there any functionality in nwa that will allow me to modify these .xml files of this web application. Is there any tool available for this.
    Regards
    Jayant

    Hi Benny,
                    Thanks for your help. Studio you means to say NWDS? I want to edit these .xml files after transporting it to quality server. I want to know is there a way to maintain these files of my application with the help of nwa link or something similar tool. For e.g. in NW 2004s for web services we can change the logical port(after transport) with the help of visual admin, I am looking for such option.
                      We are finding a way to remove this information from .xml files, but for the time being customer wants to keep this as it is.
    Waiting for your reply
    cheers
    Jayant

  • XML File-Editing

    Can anyone please tell me the best possible way to edit an XML file?
    Please reply its urgent

    Java-Quest wrote:
    edit means ... By a Java Program I want to edit the Existing Data of an XML periodically.And here I thought it probably meant you wanted to load the XML into a program with a GUI so you could type in changes to it. So you want to read the XML from a file into your program, do something to that XML, and write it back out to a file? Then I would suggest reading this tutorial:
    http://72.5.124.55/j2ee/1.4/docs/tutorial-update6/doc/JAXPIntro.html

Maybe you are looking for

  • Sandbox excel import

    I have used the following code in my jsp page <rich:datatable id = "datable" .......> </rich:datable> <s:excelExport for="datatable">      <h:commandButton value="EXCEL"/> </s:excelExport> After clicking on the button a new window is opened but shows

  • Icloud emails & itunes

    I receive emails on icloud every time I download apps on my phone, how can i deactivate this feature?

  • Dropdownmenu in infowindow of googlemaps act strange and doesn't work

    The problem occurs only in FF, not in IE or Chrome. Go to this page:<br /> http://www.meerijden.nu/ritinvoerenmaps.php?codet=en I tested it and I fill in a city in rideshare from and press enter and the icon of this city appears in the map, then I fi

  • Where's my statement?

    I cannot find my detailed statement - can anybody help?  I click on "my account".  I click on "billing and payments".  There is supposed to be a PDF icon to view current/past statements, but not so.  I've paid my current bill, I just want to see my s

  • Purchase Requisition pending for approval

    Hi,     How to find out the Purchase Requisitions that are pending for approval? Thanks and Regards, Pavan