Why can't I import this?

Mark S.
Posts: 81
Joined: Thu Aug 09, 2012 3:39 pm
Contact:

Why can't I import this?

Postby Mark S. » Mon Oct 08, 2012 2:28 pm

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
Last edited by Mark S. on Mon Oct 08, 2012 5:13 pm, edited 1 time in total.
User avatar
CintaNotes Developer
Site Admin
Posts: 5002
Joined: Fri Dec 12, 2008 4:45 pm
Contact:

Re: Why can't I import this?

Postby CintaNotes Developer » Mon Oct 08, 2012 3:37 pm

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.
Alex
Mark S.
Posts: 81
Joined: Thu Aug 09, 2012 3:39 pm
Contact:

Re: Why can't I import this?

Postby Mark S. » Mon Oct 08, 2012 4:19 pm

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
User avatar
CintaNotes Developer
Site Admin
Posts: 5002
Joined: Fri Dec 12, 2008 4:45 pm
Contact:

Re: Why can't I import this?

Postby CintaNotes Developer » Tue Oct 09, 2012 9:06 am

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".
Alex
Mark S.
Posts: 81
Joined: Thu Aug 09, 2012 3:39 pm
Contact:

Re: Why can't I import this?

Postby Mark S. » Tue Oct 09, 2012 3:14 pm

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
User avatar
CintaNotes Developer
Site Admin
Posts: 5002
Joined: Fri Dec 12, 2008 4:45 pm
Contact:

Re: Why can't I import this?

Postby CintaNotes Developer » Wed Oct 10, 2012 9:56 am

Mark, you're welcome!
Alex

Return to “Bug Reports”