Page 1 of 1

Why can't I import this?

Posted: Mon Oct 08, 2012 2:28 pm
by Mark S.
Can someone tell me what's wrong with this file? It tells me that it can't find the Notebook node. You only have to peruse it briefly to see that the Notebook node is right there.

Code: Select all

<?xml version="1.0" ?>
 <notebook version="1815">
 <tags>
  <tag autodeleted="1" autoexpanded="0" name="#ARC" />
  <tag autodeleted="1" autoexpanded="0" name="#CAL" />
  <tag autodeleted="1" autoexpanded="0" name="#TD0" />
  <tag autodeleted="0" autoexpanded="0" name="@AFTER" />
  <tag autodeleted="1" autoexpanded="0" name="Zike" />
  <tag autodeleted="1" autoexpanded="0" name="HTMS" />
  <tag autodeleted="1" autoexpanded="0" name="_CAL" />
  <tag autodeleted="1" autoexpanded="0" name="_JNL" />
  </tags>
 <note created="20120709T103407" link="" modified="20120801T082242" plainText="1" source="stuff.exe" tags="_CAL _JNL 2012/07/3/09" title="2012-07-09">
 <![CDATA[ Swim lessons

------
Mid-afternoon swim lesson for Zike.
Pizza for dinner.

  ]]>
  </note>
  </notebook>


Also, I wanted to upload the file, but the forum won't let me upload XML or TXT files. Why not?


Thanks,
Mark
Edit: Removed hyphens not in the original

Re: Why can't I import this?

Posted: Mon Oct 08, 2012 3:37 pm
by CintaNotes Developer
Hi Mark,

I think the problem is in that "-" signs that start lines before opening tags. You need to remove them.
Probably you've copied the XML from Internet Explorer or some other program that represents XML as an expandable tree?

About attaching TXT and XML files, I'll check what's the problem there, thanks.

Re: Why can't I import this?

Posted: Mon Oct 08, 2012 4:19 pm
by Mark S.
CintaNotes Developer wrote:Hi Mark,

I think the problem is in that "-" signs that start lines before opening tags. You need to remove them.
Probably you've copied the XML from Internet Explorer or some other program that represents XML as an expandable tree?

About attaching TXT and XML files, I'll check what's the problem there, thanks.

Hi,

The "-" weren't in the original -- that was just a side effect of my having to copy and paste the example rather than upload it as an xml file.

At this point, it seems to have something to do with encoding. Apparently CN exports in some type of UTF 16 ?? that most editors don't understand. Merely editing the exported file is enough to break it.

Thanks,
Mark

Re: Why can't I import this?

Posted: Tue Oct 09, 2012 9:06 am
by CintaNotes Developer
Mark,
yes, CintaNotes exports XML in UTF-16 (or more precisely, UCS-2).
You can edit this XML in Notepad quite easily, provided you open the file as "Unicode".

Re: Why can't I import this?

Posted: Tue Oct 09, 2012 3:14 pm
by Mark S.
CintaNotes Developer wrote:Mark,
yes, CintaNotes exports XML in UTF-16 (or more precisely, UCS-2).
You can edit this XML in Notepad quite easily, provided you open the file as "Unicode".

Thanks Alex,

I was just trying to click through on Notepad, so didn't know about the Unicode options. New trick to remember.

Mark

Re: Why can't I import this?

Posted: Wed Oct 10, 2012 9:56 am
by CintaNotes Developer
Mark, you're welcome!