Importing XML to WordPress, permalink problem

I figure out was I was doing wrong.

There´s a tag named “post_name” in the xml.
And there´s a tag named “link”

So I have to set this two fields, with the adress that I need.

So in the “link” fild is setup this way:

<link>http://localhost/site/man-clothes/jeans-pants/ripped/rock-style</link>

And the “post_name” fild I setup like this:

<post_name>man-clothes/jeans-pants/ripped/rock-style</post_name>

Now the permalink show like this

http://localhost/site/man-clothesjeans-pantsrippedrock-style

He takes the whole string, but, trim off the “https://wordpress.stackexchange.com/” from it.

If some one knows why this happens, I’ll appreciate the help.